I'm developing an application that rely on the web to get some location informations. Everything is working fine, except that sometimes the Internet is slow, and the Geocoder class timeout before sending the results.
Geocoder geocoder = new Geocoder(mContext, Locale.getDefault());
I tried investigating geocoder's methods, but timeout is not there. How can i fix this?
PS:
addresses = geocoder.getFromLocation(lat, lon, 1);
is inside asynctask's doInBackground().
Thanks.