[android-developers] Geocoder.getLocationFromName() works over wifi, throws IOException over 3G

2012-09-28 Thread Markos Fragkakis
Hi all, This is the initialization code for my Geocoder: Geocoder gc = new Geocoder(this); List newAddresses = gc. getFromLocationName(arg0.toString(), 10); The above code works perfectly over Wifi and throws an IOException: Could not parse response from server over 3G. Do you have any

[android-developers] Re: RPC failed with status 1

2012-02-20 Thread Markos Fragkakis
Although I never found out what caused the problem, I "guarded" my code like this: if(isOnline()) { // dangerous code here ... } else { // handle showing a message ... } and this is the isOnline method: private boolean isOnline() { ConnectivityManager cm = (ConnectivityMa

[android-developers] Re: RPC failed with status 1

2011-10-02 Thread Markos Fragkakis
OK, I managed to narrow down the problem. It happens when I invoke the Geocoder over my Wifi connection, but works fine over 3G. My Wifi connection is connected normally, if I open the browser I can open any web page. This is my manifest: http://schemas.android.com/apk/res/android"; package="c

[android-developers] RPC failed with status 1

2011-09-30 Thread Markos Fragkakis
Hi, >From time to time (every some days), with no change in my code, I get an IOException when calling the geocoder from my android application. I call the geocoder.getLocationFromName() like this: List newAddresses = gc.getFromLocationName(arg0.toString(), 10); And I get an IOException with m