Fixed
Status Update
Comments
cc...@gmail.com <cc...@gmail.com> #2
note that this code does work using Google API version 7 for android 2.1
ko...@gmail.com <ko...@gmail.com> #3
I am also having the same issue with an AVD created for Google API v8.
List<Address> addresses = geocoder.getFromLocationName("Clock Tower, Anantapur, Andhra Pradesh, India", 1);
The full stacktrace is as below:
java.io.IOException: Service not Available
at android.location.Geocoder.getFromLocationName(Geocoder.java:159)
at org.prashlabs.android.taskmanager.AddLocationMapActivity.mapCurrentAddress(AddLocationMapActivity.java
at org.prashlabs.android.taskmanager.AddLocationMapActivity$2.onClick(AddLocationMapActivity.java:60)
at android.view.View.performClick(View.java:2408)
at android.view.View$PerformClick.run(View.java:8816)
at android.os.Handler.handleCallback(Handler.java:587)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:123)
at android.app.ActivityThread.main(ActivityThread.java:4627)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:521)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
at dalvik.system.NativeStart.main(Native Method)
List<Address> addresses = geocoder.getFromLocationName("Clock Tower, Anantapur, Andhra Pradesh, India", 1);
The full stacktrace is as below:
java.io.IOException: Service not Available
at android.location.Geocoder.getFromLocationName(Geocoder.java:159)
at org.prashlabs.android.taskmanager.AddLocationMapActivity.mapCurrentAddress(AddLocationMapActivity.java
at org.prashlabs.android.taskmanager.AddLocationMapActivity$2.onClick(AddLocationMapActivity.java:60)
at android.view.View.performClick(View.java:2408)
at android.view.View$PerformClick.run(View.java:8816)
at android.os.Handler.handleCallback(Handler.java:587)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:123)
at android.app.ActivityThread.main(ActivityThread.java:4627)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:521)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
at dalvik.system.NativeStart.main(Native Method)
cc...@gmail.com <cc...@gmail.com> #4
It will work on the actual 2.2 device. That's the only information I know (not affiliated with Google). I'm actually going to look into the SAME bug this evening. Seems like a giant thing to overlook.
to...@gmail.com <to...@gmail.com> #5
Still not fixed? I have the same issue when using the Geocoder...
[Deleted User] <[Deleted User]> #6
I'm getting the same error here
sa...@gmail.com <sa...@gmail.com> #7
Just installed CyanogenMod 6 alfa and now GeoCoder works fine. I guess it will work on final builds of stock Froyo too.
cc...@gmail.com <cc...@gmail.com> #8
[Comment deleted]
jp...@gmail.com <jp...@gmail.com> #10
I also meet the same error
ck...@gmail.com <ck...@gmail.com> #11
[Deleted User] <[Deleted User]> #12
Are you guys using this code on the Android 2.2 emulator? I'm also getting this error on the emulator but it works on the actual device (nexus one - android 2.2)
jr...@android.com <jr...@android.com> #13
Same error for me on 2.2 emulator. Haven't tried on actual device yet, but I'm glad I found this. Yikes.
mc...@gmail.com <mc...@gmail.com> #14
For info: If the Eclipse build properties link with the Google APIs level 7 and the target is AVD level 8 I still get the "Service not Available" IOException on coder.getFromLocationName. So it seems that the problem lies within the level 8 AVD not the API jars.
de...@gmail.com <de...@gmail.com> #15
Hi, I'm getting the same error too. Same codes that works on AVD 7, does not work on AVD 8. :(
[Deleted User] <[Deleted User]> #16
Please stop posting "I'm getting the same error" and the like. Remember that people get email everytime such a comment is posted.
Instead of posting such an uninformative comment, the design of the system is that you vote for the issue, so please do that instead.
Instead of posting such an uninformative comment, the design of the system is that you vote for the issue, so please do that instead.
rb...@gmail.com <rb...@gmail.com> #17
folks.. please fix the bug. thanks a ton.
ca...@gmail.com <ca...@gmail.com> #18
Just ran into this issue using the 2.2 Emulator...it's a bummer because I have nothing else to test on right now....my Droid X still hasn't gotten Froyo :/
an...@gmail.com <an...@gmail.com> #19
Please, we need a solution to this issue or at least a workaround
gu...@gmail.com <gu...@gmail.com> #20
AVDs tested on: Google API v7 (2.1-update1), Google API v8 (2.2)
Code that causes this issue for me:
List<Address> addresses = geocoder.getFromLocation(37.422006, -122.084095, 1);
Result using "Google API v7 (2.1-update1)": Works as intended.
Result using "Google API v8 (2.2)": Error - java.io.IOException: Service not Available
The stacktrace is essentially the same as the one posted by prashanth.babu (Comment 2 in this thread:http://code.google.com/p/android/issues/detail?id=8816#c2 ), except for the first line:
In prashanth.babu's stack trace, the first line is:
at android.location.Geocoder.getFromLocationName(Geocoder.java:159)
In my stack trace, the first line is:
at android.location.Geocoder.getFromLocation(Geocoder.java:117)
Code that causes this issue for me:
List<Address> addresses = geocoder.getFromLocation(37.422006, -122.084095, 1);
Result using "Google API v7 (2.1-update1)": Works as intended.
Result using "Google API v8 (2.2)": Error - java.io.IOException: Service not Available
The stacktrace is essentially the same as the one posted by prashanth.babu (Comment 2 in this thread:
In prashanth.babu's stack trace, the first line is:
at android.location.Geocoder.getFromLocationName(Geocoder.java:159)
In my stack trace, the first line is:
at android.location.Geocoder.getFromLocation(Geocoder.java:117)
di...@gmail.com <di...@gmail.com> #21
hi, i also meet the issue,but i found a solution. i use the kml to get the longitude and latitude,you can input address or train station name.
it almost work in any string.
the %E5%8F%B0%E5%8D%97%E7%81%AB%E8%BB%8A%E7%AB%99 is the String you want to know.
the string type is UTF-8.
http://maps.google.com.tw/maps?f=q&source=s_q&hl=zh-TW&geocode=&q=%E5%8F%B0%E5%8D%97%E7%81%AB%E8%BB%8A%E7%AB%99&ie=UTF8&0&om=0&output=kml
hope it can help.
it almost work in any string.
the %E5%8F%B0%E5%8D%97%E7%81%AB%E8%BB%8A%E7%AB%99 is the String you want to know.
the string type is UTF-8.
hope it can help.
jc...@gmail.com <jc...@gmail.com> #22
I have found a workaround to the issue. I used the standard google api: http://code.google.com/apis/maps/documentation/geocoding/
I have created a method that received a String address like "220+victoria+square" and returns a JSONObject with the response of the HTTP Call
public static JSONObject getLocationInfo(String address) {
HttpGet httpGet = new HttpGet("http://maps.google ."
+ "com/maps/api/geocode/json?address=" + address
+ "ka&sensor=false");
HttpClient client = new DefaultHttpClient();
HttpResponse response;
StringBuilder stringBuilder = new StringBuilder();
try {
response = client.execute(httpGet);
HttpEntity entity = response.getEntity();
InputStream stream = entity.getContent();
int b;
while ((b = stream.read()) != -1) {
stringBuilder.append((char) b);
}
} catch (ClientProtocolException e) {
} catch (IOException e) {
}
JSONObject jsonObject = new JSONObject();
try {
jsonObject = new JSONObject(stringBuilder.toString());
} catch (JSONException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return jsonObject;
}
After executing this, another method converts that JSONObject into a GeoPoint.
public static GeoPoint getGeoPoint(JSONObject jsonObject) {
Double lon = new Double(0);
Double lat = new Double(0);
try {
lon = ((JSONArray)jsonObject.get("results")).getJSONObject(0)
.getJSONObject("geometry").getJSONObject("location")
.getDouble("lng");
lat = ((JSONArray)jsonObject.get("results")).getJSONObject(0)
.getJSONObject("geometry").getJSONObject("location")
.getDouble("lat");
} catch (JSONException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return new GeoPoint((int) (lat * 1E6), (int) (lon * 1E6));
}
However this solution is extremely nasty and coupled..
I hope this helps
I have created a method that received a String address like "220+victoria+square" and returns a JSONObject with the response of the HTTP Call
public static JSONObject getLocationInfo(String address) {
HttpGet httpGet = new HttpGet("
+ "com/maps/api/geocode/json?address=" + address
+ "ka&sensor=false");
HttpClient client = new DefaultHttpClient();
HttpResponse response;
StringBuilder stringBuilder = new StringBuilder();
try {
response = client.execute(httpGet);
HttpEntity entity = response.getEntity();
InputStream stream = entity.getContent();
int b;
while ((b = stream.read()) != -1) {
stringBuilder.append((char) b);
}
} catch (ClientProtocolException e) {
} catch (IOException e) {
}
JSONObject jsonObject = new JSONObject();
try {
jsonObject = new JSONObject(stringBuilder.toString());
} catch (JSONException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return jsonObject;
}
After executing this, another method converts that JSONObject into a GeoPoint.
public static GeoPoint getGeoPoint(JSONObject jsonObject) {
Double lon = new Double(0);
Double lat = new Double(0);
try {
lon = ((JSONArray)jsonObject.get("results")).getJSONObject(0)
.getJSONObject("geometry").getJSONObject("location")
.getDouble("lng");
lat = ((JSONArray)jsonObject.get("results")).getJSONObject(0)
.getJSONObject("geometry").getJSONObject("location")
.getDouble("lat");
} catch (JSONException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return new GeoPoint((int) (lat * 1E6), (int) (lon * 1E6));
}
However this solution is extremely nasty and coupled..
I hope this helps
pr...@gmail.com <pr...@gmail.com> #23
[Comment deleted]
co...@gmail.com <co...@gmail.com> #24
[Comment deleted]
em...@gmail.com <em...@gmail.com> #25
Hii, Pablolarrimbe this is Dev your,s extremely nasty and coupled solution worked for me. Thanx bro...Only the address you are passing to the "getLocationInfo(String address)"
replace all blank spaces with %20. ex-> address = address.replaceAll(" ","%20"); Thats it....
replace all blank spaces with %20. ex-> address = address.replaceAll(" ","%20"); Thats it....
em...@gmail.com <em...@gmail.com> #26
Hi ,
Please provide solution for geoCoder.getFromLocation(
point.getLatitudeE6() / 1E6,
point.getLongitudeE6() / 1E6, 1) "Google API v8 (2.2)": Error - java.io.IOException: Service not Available
Thanks in advance
Samina
Please provide solution for geoCoder.getFromLocation(
point.getLatitudeE6() / 1E6,
point.getLongitudeE6() / 1E6, 1) "Google API v8 (2.2)": Error - java.io.IOException: Service not Available
Thanks in advance
Samina
pr...@gmail.com <pr...@gmail.com> #27
[Comment deleted]
an...@gmail.com <an...@gmail.com> #28
Alas, geocoding fails on a DEVICE for me. Android 1.5 and Android 1.6. Presumably it works OK on an Android 2.2 device.
Are you guys building against SDK 8 and intending to run on 1.5, 1.6, etc? Has anyone else had the same errors?
Are you guys building against SDK 8 and intending to run on 1.5, 1.6, etc? Has anyone else had the same errors?
he...@gmail.com <he...@gmail.com> #29
[Comment deleted]
to...@gmail.com <to...@gmail.com> #30
Can Google engineers put a priority on this bug? What's the escalation process to fix this?
ht...@gmail.com <ht...@gmail.com> #31
Hey guys. Check my comment number 21, there I have posted a solution to this problem.
It is more like a workaround, but it will do it for now.
It is more like a workaround, but it will do it for now.
20...@gmail.com <20...@gmail.com> #32
pablolarrimbe, they are referring to reverse geocoding, yeah? You just have geocoding.
Attached is my workaround.. it works well enough for testing. It uses the old google geocode API. It's good enough until I get a phone to develop on.
ReverseGeocode.getFromLocation(double lat, double lon, int maxResults)
Returns a List<Address> like Geocoder's getFromLocation.
Attached is my workaround.. it works well enough for testing. It uses the old google geocode API. It's good enough until I get a phone to develop on.
ReverseGeocode.getFromLocation(double lat, double lon, int maxResults)
Returns a List<Address> like Geocoder's getFromLocation.
[Deleted User] <[Deleted User]> #33
[Comment deleted]
th...@gmail.com <th...@gmail.com> #34
[Comment deleted]
[Deleted User] <[Deleted User]> #35
pablolarrimbe, I saw your post #21. As you said it is a workaround. The API clearly breaks from its previous release. I can live with workaround during my development. Can google give an ETA to fix this? Also, I was asking what is the escalation path, if any? Thanks.
ar...@gmail.com <ar...@gmail.com> #36
Edward.the.IV,
No. It is the Geocoder. The following code throws an IOException in the emulator with SDK 2.2. Apparently according to other post, the code is working on the physical device. This could be a bug in the emulator.
String staddress = "1600 Amphitheatre Parkway Mountain View, CA 94043";
try {
List<Address> loc = geocoder.getFromLocationName(staddress, 5);
} catch(IOException e) {
Log.e("IOException", e.getMessage());
}
No. It is the Geocoder. The following code throws an IOException in the emulator with SDK 2.2. Apparently according to other post, the code is working on the physical device. This could be a bug in the emulator.
String staddress = "1600 Amphitheatre Parkway Mountain View, CA 94043";
try {
List<Address> loc = geocoder.getFromLocationName(staddress, 5);
} catch(IOException e) {
Log.e("IOException", e.getMessage());
}
ne...@gmail.com <ne...@gmail.com> #37
Hey guys if it's a emulator bug, why is it doing without any problem when you click on an address under contact's address??? I'm saying that in emulators contact create an address for a contact and then click it, it brings the map and shows the correct address.
Is that map a different map? (is not not google map)?
So why we can not use that map?
Is that map a different map? (is not not google map)?
So why we can not use that map?
la...@gmail.com <la...@gmail.com> #38
Any suggestion???
lo...@gmail.com <lo...@gmail.com> #39
bobbyfu: Again, you posted a Geocoder. Not a reverse Geocoder.
varandtin: As far as I can tell, they're opening Maps with an intent.
It's as if you did this:
Intent i = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse("geo:0,0?q=123+Some+Street+Vermont"));
startActivity(i);
Posting "Any suggestion???" sent an email to my phone while I was busy. Thank you for that, it was very irritating.
varandtin: As far as I can tell, they're opening Maps with an intent.
It's as if you did this:
Intent i = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse("geo:0,0?q=123+Some+Street+Vermont"));
startActivity(i);
Posting "Any suggestion???" sent an email to my phone while I was busy. Thank you for that, it was very irritating.
re...@gmail.com <re...@gmail.com> #40
[Comment deleted]
kr...@gmail.com <kr...@gmail.com> #41
DavidAlanJewell: This bug is with the GeoCoder API. It has nothing to do with the MapView or MapActivity classes. The problem you describe sounds like an invalid maps API key.
Can people please think before posting. Unless you have information that is specific to this bug and will help in the diagnosis of it by Google staff there is little reason in posting.
All you're doing is disturbing everyone who has starred this bug and making it harder for Google staff to get genuine information about the problem when they do get around to looking at it.
Can people please think before posting. Unless you have information that is specific to this bug and will help in the diagnosis of it by Google staff there is little reason in posting.
All you're doing is disturbing everyone who has starred this bug and making it harder for Google staff to get genuine information about the problem when they do get around to looking at it.
kr...@gmail.com <kr...@gmail.com> #42
I respectively remove my "Google staff disturbing" Comment #39 .
an...@gmail.com <an...@gmail.com> #43
[Comment deleted]
cr...@gmail.com <cr...@gmail.com> #44
Ok, maybe this might seem of little use to "average" app developers (like me):
I just noticed, by stepping through code, that the first place where you get a "Service not Available" _result String is inside some ILocationManager$Stub$Proxy@<...some numbers...> at line 818 (froyo 2.2 source code). Of course there's no source code for this beaing an AIDL proxy implementation.
Not an expert of AIDL programming, but "from the outside" it seems like a proxy stub is called on the emulator, while there should be an actual proxy implementation (i.e. not a stub) that should do the actual work.
I just noticed, by stepping through code, that the first place where you get a "Service not Available" _result String is inside some ILocationManager$Stub$Proxy@<...some numbers...> at line 818 (froyo 2.2 source code). Of course there's no source code for this beaing an AIDL proxy implementation.
Not an expert of AIDL programming, but "from the outside" it seems like a proxy stub is called on the emulator, while there should be an actual proxy implementation (i.e. not a stub) that should do the actual work.
an...@gmail.com <an...@gmail.com> #45
Is it possible to change the name of this bug? It may help in getting it noticed. IMO the problem appears to be that the location service hasn't been started in the emulator or it's started and the AIDL proxy can't use it. Does anyone know if it's possible to start the service manually?
an...@gmail.com <an...@gmail.com> #46
After having a play I've found:
<!-- Component name of the service providing network location support. -->
<string name="config_networkLocationProvider">@null</string>
<!-- Component name of the service providing geocoder API support. -->
<string name="config_geocodeProvider">@null</string>
in the android source folder: frameworks/base/core/res/res/values/config.xml
After looking here (http://forum.xda-developers.com/showthread.php?t=710105&page=71 ) it looks like those @null's should be:
<!-- Component name of the service providing network location support. -->
<string name="config_networkLocationProvider">com.google.android.location.NetworkLocationProvider</string>
<!-- Component name of the service providing geocoder API support. -->
<string name="config_geocodeProvider">com.google.android.location.GeocodeProvider</string>
Is anyone able to change these params, compile and see if it works? I would but I'm on Snow Leopard on a Mac and havent managed a successful build (just yet ;-) )
<!-- Component name of the service providing network location support. -->
<string name="config_networkLocationProvider">@null</string>
<!-- Component name of the service providing geocoder API support. -->
<string name="config_geocodeProvider">@null</string>
in the android source folder: frameworks/base/core/res/res/values/config.xml
After looking here (
<!-- Component name of the service providing network location support. -->
<string name="config_networkLocationProvider">com.google.android.location.NetworkLocationProvider</string>
<!-- Component name of the service providing geocoder API support. -->
<string name="config_geocodeProvider">com.google.android.location.GeocodeProvider</string>
Is anyone able to change these params, compile and see if it works? I would but I'm on Snow Leopard on a Mac and havent managed a successful build (just yet ;-) )
[Deleted User] <[Deleted User]> #47
verified aarons88's workaround in comment45. it works!
da...@gmail.com <da...@gmail.com> #48
[Comment deleted]
pa...@gmail.com <pa...@gmail.com> #49
is anyone experiencing this issue on devices running Gingerbread?
sa...@gmail.com <sa...@gmail.com> #50
verified aarons88's workaround in comment45. it doesn't work!
an...@gmail.com <an...@gmail.com> #51
verified aarons88's workaround in comment45. it doesn't work!
E/ReverseGeocoder( 1137): java.io.IOException: Service not Available
E/ReverseGeocoder( 1137): at android.location.Geocoder.getFromLocation(Geocoder.java:117)
E/ReverseGeocoder( 1137): at com.android.camera.ReverseGeocoderTask.doInBackground(ReverseGeocoderTask.java:52)
E/ReverseGeocoder( 1137): java.io.IOException: Service not Available
E/ReverseGeocoder( 1137): at android.location.Geocoder.getFromLocation(Geocoder.java:117)
E/ReverseGeocoder( 1137): at com.android.camera.ReverseGeocoderTask.doInBackground(ReverseGeocoderTask.java:52)
gu...@gmail.com <gu...@gmail.com> #52
[Comment deleted]
ko...@gmail.com <ko...@gmail.com> #53
this bug is always broken?
I say that beacause this morning i was triying (my first time) Geocoder and worked fine, I got street, number and city. After that, now I tried to get Locale and....doesn't work any more.
I say that beacause this morning i was triying (my first time) Geocoder and worked fine, I got street, number and city. After that, now I tried to get Locale and....doesn't work any more.
ke...@gmail.com <ke...@gmail.com> #54
Thanks for trying guys.
After thinking - we dont have the source for the GeocodeProvider (afaik its kept in house at Google) so we wouldn't be able to compile it in anyway. Short of someone in Google updating that config file and redistributing the GoogleAPI's avd I can't think of a way around it.
Unless its possible to unpack the image, edit the config file then pack it up and run again?
After thinking - we dont have the source for the GeocodeProvider (afaik its kept in house at Google) so we wouldn't be able to compile it in anyway. Short of someone in Google updating that config file and redistributing the GoogleAPI's avd I can't think of a way around it.
Unless its possible to unpack the image, edit the config file then pack it up and run again?
ra...@gmail.com <ra...@gmail.com> #55
with the solution on 21 and 24 it's not working on 2.3, this return an error:
02-07 20:29:28.986: WARN/System.err(2551): IOException processing: 26
02-07 20:29:28.986: WARN/System.err(2551): java.io.IOException: Server returned: 3
02-07 20:29:28.986: WARN/System.err(2551): at android_maps_conflict_avoidance.com.google.googlenav.map.BaseTileRequest.readResponseData(BaseTileRequest.java:115)
I compare the coord and the json response and this are good.
Any solution?
02-07 20:29:28.986: WARN/System.err(2551): IOException processing: 26
02-07 20:29:28.986: WARN/System.err(2551): java.io.IOException: Server returned: 3
02-07 20:29:28.986: WARN/System.err(2551): at android_maps_conflict_avoidance.com.google.googlenav.map.BaseTileRequest.readResponseData(BaseTileRequest.java:115)
I compare the coord and the json response and this are good.
Any solution?
ju...@gmail.com <ju...@gmail.com> #56
Please, some solution to this bug?
I am interested in using Geopoint.getFromLocation (....) to launch after a try with a route through Google Navigation.
Necesito obtener la direccion real del dispositivo.
He visto en otros mensajes que en un dispositivo funciona ok, pero quiero hacer pruebas en los emuladores de API LEVEL 8.
I am interested in using Geopoint.getFromLocation (....) to launch after a try with a route through Google Navigation.
Necesito obtener la direccion real del dispositivo.
He visto en otros mensajes que en un dispositivo funciona ok, pero quiero hacer pruebas en los emuladores de API LEVEL 8.
ge...@gmail.com <ge...@gmail.com> #57
Please, some solution to this bug?
I am interested in using Geopoint.getFromLocation (....) to launch after a try with a route through Google Navigation.
I need to get the real address of the device.
I've seen in other posts that a device works ok, but I want to test the API emulators LEVEL 8.
Please excuse the mess of the previous message.
I am interested in using Geopoint.getFromLocation (....) to launch after a try with a route through Google Navigation.
I need to get the real address of the device.
I've seen in other posts that a device works ok, but I want to test the API emulators LEVEL 8.
Please excuse the mess of the previous message.
cl...@gmail.com <cl...@gmail.com> #58
it has to do with your network connection. when i turn Wifi on everything works fine.
gu...@gmail.com <gu...@gmail.com> #59
Somebody help me
How can I apply #21 or #31 solution to my project?
How can I apply #21 or #31 solution to my project?
ka...@gmail.com <ka...@gmail.com> #60
try this fragment:
Geocoder gc = new Geocoder(context, Locale.getDefault());
List<Address> addresses = null;
try {
addresses = gc.getFromLocation(latitude, longitude, maxResults);
} catch (IOException e) {
Log.i("tag", "build:"+ Build.PRODUCT);
// TODO Auto-generated catch block
if("google_sdk".equals( Build.PRODUCT )) {
Log.i("tag", "Geocoder doesn't work under emulation.");
addresses = ReverseGeocode.getFromLocation(latitude, longitude, 1);
} else
e.printStackTrace();
}
Geocoder gc = new Geocoder(context, Locale.getDefault());
List<Address> addresses = null;
try {
addresses = gc.getFromLocation(latitude, longitude, maxResults);
} catch (IOException e) {
Log.i("tag", "build:"+ Build.PRODUCT);
// TODO Auto-generated catch block
if("google_sdk".equals( Build.PRODUCT )) {
Log.i("tag", "Geocoder doesn't work under emulation.");
addresses = ReverseGeocode.getFromLocation(latitude, longitude, 1);
} else
e.printStackTrace();
}
pr...@gmail.com <pr...@gmail.com> #61
[Comment deleted]
ma...@gmail.com <ma...@gmail.com> #62
This is a bug tracker, not your personal support forum. If you don't have something CONSTRUCTIVE to contribute to the issue, don't post.
please.
[My apologies to the other 75 people who are being e-mailed this. I'm just trying to improve the signal/noise ratio.]
please.
[My apologies to the other 75 people who are being e-mailed this. I'm just trying to improve the signal/noise ratio.]
gu...@gmail.com <gu...@gmail.com> #63
[Comment deleted]
kb...@gmail.com <kb...@gmail.com> #64
Sorry its Comment 31 NOT 21 that Certainly Works! I just tried!
(Maybe 21 too works, yet to try it out)
Make sure that in your manifest file your permissions are above the activity!!
Like this
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android "
package="ex.checkgeo"
android:versionCode="1"
android:versionName="1.0">
<uses-sdk android:minSdkVersion="8" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.INTERNET" />
<application android:icon="@drawable/icon" android:label="@string/app_name">
<activity android:name=".checkgeo"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
---------
I had kept it inside application and it was not working!
Now it is.
Cheers
(Maybe 21 too works, yet to try it out)
Make sure that in your manifest file your permissions are above the activity!!
Like this
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="
package="ex.checkgeo"
android:versionCode="1"
android:versionName="1.0">
<uses-sdk android:minSdkVersion="8" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.INTERNET" />
<application android:icon="@drawable/icon" android:label="@string/app_name">
<activity android:name=".checkgeo"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
---------
I had kept it inside application and it was not working!
Now it is.
Cheers
ha...@gmail.com <ha...@gmail.com> #65
Ok Comment 21 Works Too!
Note for that just put this in manifest too
<uses-library android:name="com.google.android.maps" />
just before your application tags is closed!
i.e.
<uses-library android:name="com.google.android.maps" />
</application>
</manifest>
Cheers!!
:D
Note for that just put this in manifest too
<uses-library android:name="com.google.android.maps" />
just before your application tags is closed!
i.e.
<uses-library android:name="com.google.android.maps" />
</application>
</manifest>
Cheers!!
:D
[Deleted User] <[Deleted User]> #66
Hey!
Im #21's writer. I can help you with that if you cant.
Just tell me how i can help you.
Im #21's writer. I can help you with that if you cant.
Just tell me how i can help you.
to...@gmail.com <to...@gmail.com> #67
I also get the same error ,test many times changing api version or emulator ,it it irresolvable
ne...@gmail.com <ne...@gmail.com> #68
Thanks all of you who give me your comments.
I have already solve the issue by changing the other apk.
I have already solve the issue by changing the other apk.
xc...@gmail.com <xc...@gmail.com> #69
It is really works ! Thanks #21 ,thanks for you solution way. you did really a great job.
ia...@gmail.com <ia...@gmail.com> #70
[Comment deleted]
ra...@gmail.com <ra...@gmail.com> #71
04-13 19:39:53.161: WARN/System.err(4235): java.io.IOException: Service not Available
solution plz...?
solution plz...?
re...@gmail.com <re...@gmail.com> #72
java.io.IOException: Service not Available
android 2.3.3
same error.... any solution?????
android 2.3.3
same error.... any solution?????
ad...@gmail.com <ad...@gmail.com> #73
It will work on the actual 2.2 device. That's the only information I know (not affiliated with Google). I'm actually going to look into the SAME bug this evening. Seems like a giant thing to overlook.
fr...@gmail.com <fr...@gmail.com> #74
#72 - I've tried it on an actual device running 2.2 and it is NOT working..
ja...@gmail.com <ja...@gmail.com> #75
Sir I am getting same error i tried to my best but i am always getting java.io.IOException: Service not Available
Please tell me solution
Please tell me solution
dr...@gmail.com <dr...@gmail.com> #76
so many people onbody can do it! it's a tragedy
za...@gmail.com <za...@gmail.com> #77
so many people onbody can do it! it's a tragedy
br...@gmail.com <br...@gmail.com> #78
Any word on if this has been fixed for 2.3.3? I'm assuming not since I'm getting the same issue. What a pain.
pr...@feip.co <pr...@feip.co> #79
When can we expect this to be fixed?
pr...@feip.co <pr...@feip.co> #80
Hey there:
I am also facing a problem getting my own location with com.google.android.maps.MyLocationOverlay. This also does not work anymore since I updated my smartphone from 2.2.1 to 2.3.3 (HTC Desire Z):
myLocationOverlay = new MyLocationOverlay(this, mapView);
myLocationOverlay.enableMyLocation();
if(myLocationOverlay.getMyLocation()!=null){
mapView.getController().animateTo(myLocationOverlay.getMyLocation());
}
Can this issue maybe also be solved?
Best regards!
I am also facing a problem getting my own location with com.google.android.maps.MyLocationOverlay. This also does not work anymore since I updated my smartphone from 2.2.1 to 2.3.3 (HTC Desire Z):
myLocationOverlay = new MyLocationOverlay(this, mapView);
myLocationOverlay.enableMyLocation();
if(myLocationOverlay.getMyLocation()!=null){
mapView.getController().animateTo(myLocationOverlay.getMyLocation());
}
Can this issue maybe also be solved?
Best regards!
ga...@gmail.com <ga...@gmail.com> #81
With the same problem, just close emulator, unplug-replug wifi usb key, and restart emulator and application worked for me.
vi...@gmail.com <vi...@gmail.com> #82
I am also getting the same issue. Is this really the API issue ? And if it is then how much time will it take to fix this one ?
rizzz86
rizzz86
ak...@bloni.in <ak...@bloni.in> #83
i am using 2.1......... but it still not getting any location.....means returns null
je...@gmail.com <je...@gmail.com> #84
thanks pablolar @ Comment #21 , it works
je...@gmail.com <je...@gmail.com> #85
Thanks pablolar @ Comment #21
it works for most addresses including some chinese places like "北京" (Beijing), "四川自贡" (Sichuan Zigong), a city of Sichuan province. the first two words represent province's name, the last two represnt city's name.
But for some chinese addresses like "浙江杭州" (ZheJiang HangZhou), a city of ZheJiang province, it throws an Exception: org.apache.http.NoHttpResponseException: The target server failed to respond.
I use setHttpRequestRetryHandler(HttpRequestRetryHandler retryHandler) method to retry several times, but the problem also exists.
Can this issue be solved?
it works for most addresses including some chinese places like "北京" (Beijing), "四川自贡" (Sichuan Zigong), a city of Sichuan province. the first two words represent province's name, the last two represnt city's name.
But for some chinese addresses like "浙江杭州" (ZheJiang HangZhou), a city of ZheJiang province, it throws an Exception: org.apache.http.NoHttpResponseException: The target server failed to respond.
I use setHttpRequestRetryHandler(HttpRequestRetryHandler retryHandler) method to retry several times, but the problem also exists.
Can this issue be solved?
ol...@gmail.com <ol...@gmail.com> #86
I tried to get the Latitude/Longitude of a Address on this versions: 2.1, 2.2, 2.3.1, and I received IOException and all of this versions.
Please, someone have a solution? Because, I don't want to use other time the user's Internet
Please, someone have a solution? Because, I don't want to use other time the user's Internet
ni...@gmail.com <ni...@gmail.com> #87
The comment 31 is working grate for me .... Thanks to "ReverseGeocode.java" and it's writer ... it is a best fix for this issue.
ma...@gmail.com <ma...@gmail.com> #88
Hello...this issue has popped up again apparently with the release of Google Maps 6.0.
Running the same piece of Reverse Geocode code on Asus Transformer (3.2.1) and HTC Incredible (2.3.4)...min SDK 6, target SDK 14.
Asus Transformer repeatedly throws i/o exception "Service not Available", HTC Incredible reliably returns addresses.
Running the same piece of Reverse Geocode code on Asus Transformer (3.2.1) and HTC Incredible (2.3.4)...min SDK 6, target SDK 14.
Asus Transformer repeatedly throws i/o exception "Service not Available", HTC Incredible reliably returns addresses.
Description
This sample demonstrates the problem:
===========
<html>
<head>
<style>
body {
background: url(bg.png);
background-position: center;
background-attachment: fixed;
background-repeat: no-repeat;
}
</style>
</head>
<body>
Test test test
<br/><br/><br/><br/><br/><br/><br/>
<br/><br/><br/><br/><br/><br/><br/>
<br/><br/><br/><br/><br/><br/><br/>
<br/><br/><br/><br/><br/><br/><br/>
<br/><br/><br/><br/><br/><br/><br/>
<br/><br/><br/><br/><br/><br/><br/>
EOF
</body>
</html>
===========
You need a bg image to see the problem (attached).
When you show the page in the Android browser, if you scroll, the
background image doesn't stay fixed in the middle as it should per the "background-attachment: fixed;" css rule.