The Problem here is guys that i have an android app which uses Geocoding and makes REST based Network calls, this however works flawlessly when i am using WI-FI, however when i have tried using GPRS network it does well most times but there are instances when it has failed resulting in a force close. How to handle this during situations when the network is weak like making a call again e.t.c. Any help is appreciated
Connectivity Manager is used in the app for checking Network connections if they are available or not, but the issue here is that it does well in Stronger Network connections however fails in poorer Network Connections owing to the fact that it makes Network Calls, I am curious if there is a way to make Calls again when there is a failure ??
By Mentioning a "Weak Connection", I am Trying to say that its the kind of connection which has poor signal Strength and low Speed in terms of Data Transfer Which otherwise in presence of a stronger connection like Wi-fi would work fine.
If you are connecting to remote servers over HTTP, one of the approaches could be setting appropriate ConnectionTimeOut and SocketTimeOut parameters. If you get ConnectionTimeOut or SocketTImedOut Exceptions you can show an informational popup to the user saying "Limited Connectivity or Slow connection".