Infeasible
Status Update
Comments
iw...@gmail.com <iw...@gmail.com> #2
This is caused by a typo. I am testing a patch.
pr...@gmail.com <pr...@gmail.com> #3
[Deleted User] <[Deleted User]> #4
fix submitted to aosp servers.
ca...@gmail.com <ca...@gmail.com> #5
Available in NDK r8
ma...@gmail.com <ma...@gmail.com> #6
Help me fix issue
co...@gmail.com <co...@gmail.com> #7
gabi++/stlport no longer exist in the NDK.
ma...@gmail.com <ma...@gmail.com> #8
[Comment deleted]
xi...@gmail.com <xi...@gmail.com> #10
I also meet the same error
es...@gmail.com <es...@gmail.com> #11
dd...@gmail.com <dd...@gmail.com> #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)
mp...@gmail.com <mp...@gmail.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.
ni...@nthearle.demon.co.uk <ni...@nthearle.demon.co.uk> #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.
ch...@gmail.com <ch...@gmail.com> #15
Hi, I'm getting the same error too. Same codes that works on AVD 7, does not work on AVD 8. :(
me...@gmail.com <me...@gmail.com> #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.
me...@gmail.com <me...@gmail.com> #17
folks.. please fix the bug. thanks a ton.
st...@gmail.com <st...@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 :/
pa...@gmail.com <pa...@gmail.com> #19
Please, we need a solution to this issue or at least a workaround
ah...@gmail.com <ah...@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)
mu...@gmail.com <mu...@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.
pa...@gmail.com <pa...@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
mr...@gmail.com <mr...@gmail.com> #23
[Comment deleted]
mr...@gmail.com <mr...@gmail.com> #24
[Comment deleted]
mr...@gmail.com <mr...@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....
sf...@gmail.com <sf...@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
sf...@gmail.com <sf...@gmail.com> #27
[Comment deleted]
ge...@gmail.com <ge...@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?
ha...@googlemail.com <ha...@googlemail.com> #29
[Comment deleted]
bo...@gmail.com <bo...@gmail.com> #30
Can Google engineers put a priority on this bug? What's the escalation process to fix this?
pa...@gmail.com <pa...@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.
ed...@gmail.com <ed...@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.
ed...@gmail.com <ed...@gmail.com> #33
[Comment deleted]
ha...@googlemail.com <ha...@googlemail.com> #34
[Comment deleted]
bo...@gmail.com <bo...@gmail.com> #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.
bo...@gmail.com <bo...@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());
}
va...@gmail.com <va...@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?
va...@gmail.com <va...@gmail.com> #38
Any suggestion???
ed...@gmail.com <ed...@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.
da...@gmail.com <da...@gmail.com> #40
[Comment deleted]
cj...@gmail.com <cj...@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.
da...@gmail.com <da...@gmail.com> #42
I respectively remove my "Google staff disturbing" Comment #39 .
da...@gmail.com <da...@gmail.com> #43
[Comment deleted]
pi...@gmail.com <pi...@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.
aa...@gmail.com <aa...@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?
aa...@gmail.com <aa...@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 ;-) )
jt...@gmail.com <jt...@gmail.com> #47
verified aarons88's workaround in comment45. it works!
st...@gmail.com <st...@gmail.com> #48
[Comment deleted]
st...@gmail.com <st...@gmail.com> #49
is anyone experiencing this issue on devices running Gingerbread?
cl...@laposte.net <cl...@laposte.net> #50
verified aarons88's workaround in comment45. it doesn't work!
lu...@163.com <lu...@163.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)
ma...@gmail.com <ma...@gmail.com> #52
[Comment deleted]
ma...@gmail.com <ma...@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.
aa...@gmail.com <aa...@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?
fl...@gmail.com <fl...@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?
am...@gmail.com <am...@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.
am...@gmail.com <am...@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.
ak...@gmail.com <ak...@gmail.com> #58
it has to do with your network connection. when i turn Wifi on everything works fine.
wa...@gmail.com <wa...@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?
pw...@gmail.com <pw...@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();
}
wa...@gmail.com <wa...@gmail.com> #61
[Comment deleted]
st...@gmail.com <st...@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.]
fi...@gmail.com <fi...@gmail.com> #63
[Comment deleted]
fi...@gmail.com <fi...@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
fi...@gmail.com <fi...@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
pa...@gmail.com <pa...@gmail.com> #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.
wa...@gmail.com <wa...@gmail.com> #67
I also get the same error ,test many times changing api version or emulator ,it it irresolvable
wa...@gmail.com <wa...@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.
sh...@gmail.com <sh...@gmail.com> #69
It is really works ! Thanks #21 ,thanks for you solution way. you did really a great job.
ch...@gmail.com <ch...@gmail.com> #70
[Comment deleted]
as...@gmail.com <as...@gmail.com> #71
04-13 19:39:53.161: WARN/System.err(4235): java.io.IOException: Service not Available
solution plz...?
solution plz...?
ib...@gmail.com <ib...@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?????
na...@gmail.com <na...@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.
im...@gmail.com <im...@gmail.com> #74
#72 - I've tried it on an actual device running 2.2 and it is NOT working..
de...@gmail.com <de...@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
bo...@163.com <bo...@163.com> #76
so many people onbody can do it! it's a tragedy
bo...@163.com <bo...@163.com> #77
so many people onbody can do it! it's a tragedy
ja...@gmail.com <ja...@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.
ht...@gmail.com <ht...@gmail.com> #79
When can we expect this to be fixed?
an...@googlemail.com <an...@googlemail.com> #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!
wo...@gmail.com <wo...@gmail.com> #81
With the same problem, just close emulator, unplug-replug wifi usb key, and restart emulator and application worked for me.
[Deleted User] <[Deleted User]> #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
ni...@gmail.com <ni...@gmail.com> #83
i am using 2.1......... but it still not getting any location.....means returns null
ah...@gmail.com <ah...@gmail.com> #84
thanks pablolar @ Comment #21 , it works
lu...@gmail.com <lu...@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?
ir...@gmail.com <ir...@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
er...@gmail.com <er...@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.
cu...@gmail.com <cu...@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.
li...@gmail.com <li...@gmail.com> #89
hi,i got the errors:
-----------------------------------
12-04 08:46:46.793: E/ActivityThread(979): Failed to find provider info for com.google.settings
12-04 08:46:46.802: E/ActivityThread(979): Failed to find provider info for com.google.settings
12-04 08:46:46.833: E/ActivityThread(979): Failed to find provider info for com.google.settings
12-04 08:46:47.433: E/MapActivity(979): Couldn't get connection factory client
---------------------------------------------
i can see the map , but the geo point is not display....
any suggestion??
-----------------------------------
12-04 08:46:46.793: E/ActivityThread(979): Failed to find provider info for com.google.settings
12-04 08:46:46.802: E/ActivityThread(979): Failed to find provider info for com.google.settings
12-04 08:46:46.833: E/ActivityThread(979): Failed to find provider info for com.google.settings
12-04 08:46:47.433: E/MapActivity(979): Couldn't get connection factory client
---------------------------------------------
i can see the map , but the geo point is not display....
any suggestion??
aw...@gmail.com <aw...@gmail.com> #90
#31 - thanks for the code. I have been able to use it after cleaning it up a little. Specific fixes:
- returns one less result than the max you asked for
- if any location fields are missing from the JSON response, that address will not be added to the result list
Outstanding bug: If one of the location fields are missing from the JSON response, the fields that are normally extracted after it will not be extracted
- returns one less result than the max you asked for
- if any location fields are missing from the JSON response, that address will not be added to the result list
Outstanding bug: If one of the location fields are missing from the JSON response, the fields that are normally extracted after it will not be extracted
ge...@gmail.com <ge...@gmail.com> #91
Hi, am using the API 14 and facing issue saying 'Couldn't get connection factory client'. Please let me know the solution for this. I have no issues with libraries and internet added. Please let me know the solution?
pa...@gmail.com <pa...@gmail.com> #92
i also get service not available in api level 10
pa...@gmail.com <pa...@gmail.com> #93
Hi I'm experiencing the same problem.Can anyone help me ?
I've tried some of the proposed solution but nothing of good happen
I've tried some of the proposed solution but nothing of good happen
cy...@gmail.com <cy...@gmail.com> #94
[Comment deleted]
cy...@gmail.com <cy...@gmail.com> #95
hiii... comment #21 its worked for me...on API level 8...
just replace all [space] with %20
use this..and check this link
http://stackoverflow.com/a/9173488/1151312
just replace all [space] with %20
use this..and check this link
cd...@gmail.com <cd...@gmail.com> #96
[Comment deleted]
ha...@gmail.com <ha...@gmail.com> #97
I am also having this same problem in Android 2.3.3
i.e. target:10
I used the concept of comment 21 too but no success.
i.e. target:10
I used the concept of comment 21 too but no success.
ku...@gmail.com <ku...@gmail.com> #98
Harry use HttpPost instead of HttpGet.....it'll work surely!!!
Thanx #21...
Thanx #21...
pe...@gmail.com <pe...@gmail.com> #99
Hi i also get service not available in api level 13
sa...@gmail.com <sa...@gmail.com> #100
Hi Pablolarrimbe ,great thanks for sharing such a nice code. It worked me a lot.
cd...@gmail.com <cd...@gmail.com> #101
"I'm getting the same error" and the like
[Deleted User] <[Deleted User]> #102
same
pe...@gmail.com <pe...@gmail.com> #103
[Comment deleted]
pe...@gmail.com <pe...@gmail.com> #104
"Couldn't get connection factory client!" error with api level 15! Any cure?
gm...@gmail.com <gm...@gmail.com> #105
Pablo Larrimbe thanks bro, its working!
to...@gmail.com <to...@gmail.com> #106
The solution over the normal Geocode API (not geocoder class) works for me.
But I did a little change to the code because there were Problems with umlauts (ö, ä, ü etc).
here it is for getting the response
But I did a little change to the code because there were Problems with umlauts (ö, ä, ü etc).
here it is for getting the response
ki...@gmail.com <ki...@gmail.com> #107
Hi,
I was having this "Service not available" problem for a week. But, just now I have done system update and the problem is gone. It was compatibility problem with Google Maps 6.12.
I was having this "Service not available" problem for a week. But, just now I have done system update and the problem is gone. It was compatibility problem with Google Maps 6.12.
ni...@gmail.com <ni...@gmail.com> #108
I've faced same problem for ICS 4.0 device.
I just restarted my device and its working now.
For emulator you can do the same.
One more issue with emulator is of Internet connection.
So rather than using wi-fi try wired network, may be that can be helpful for u.
I just restarted my device and its working now.
For emulator you can do the same.
One more issue with emulator is of Internet connection.
So rather than using wi-fi try wired network, may be that can be helpful for u.
an...@gmail.com <an...@gmail.com> #109
I've got this eror ;
java.io.IOException: Service not Available
on android 2.3.3
Any solution ?
the code :
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
TextView myLatitude = (TextView)findViewById(R.id.mylatitude);
TextView myLongitude = (TextView)findViewById(R.id.mylongitude);
TextView myAddress = (TextView)findViewById(R.id.myaddress);
myLatitude.setText("Latitude: " + String.valueOf(LATITUDE));
myLongitude.setText("Longitude: " + String.valueOf(LONGITUDE));
Geocoder geocoder = new Geocoder(this, Locale.ENGLISH);
try {
List<Address> addresses = geocoder.getFromLocation(LATITUDE, LONGITUDE, 1);
if(addresses != null) {
Address returnedAddress = addresses.get(0);
StringBuilder strReturnedAddress = new StringBuilder("Address:\n");
for(int i=0; i<returnedAddress.getMaxAddressLineIndex(); i++) {
strReturnedAddress.append(returnedAddress.getAddressLine(i)).append("\n");
}
myAddress.setText(strReturnedAddress.toString());
}
else{
myAddress.setText("No Address returned!");
}
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
myAddress.setText("Can not get Address!");
}
java.io.IOException: Service not Available
on android 2.3.3
Any solution ?
the code :
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
TextView myLatitude = (TextView)findViewById(R.id.mylatitude);
TextView myLongitude = (TextView)findViewById(R.id.mylongitude);
TextView myAddress = (TextView)findViewById(R.id.myaddress);
myLatitude.setText("Latitude: " + String.valueOf(LATITUDE));
myLongitude.setText("Longitude: " + String.valueOf(LONGITUDE));
Geocoder geocoder = new Geocoder(this, Locale.ENGLISH);
try {
List<Address> addresses = geocoder.getFromLocation(LATITUDE, LONGITUDE, 1);
if(addresses != null) {
Address returnedAddress = addresses.get(0);
StringBuilder strReturnedAddress = new StringBuilder("Address:\n");
for(int i=0; i<returnedAddress.getMaxAddressLineIndex(); i++) {
strReturnedAddress.append(returnedAddress.getAddressLine(i)).append("\n");
}
myAddress.setText(strReturnedAddress.toString());
}
else{
myAddress.setText("No Address returned!");
}
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
myAddress.setText("Can not get Address!");
}
ma...@gmail.com <ma...@gmail.com> #110
Hello i have the same problem. In my case avd 2.3 comment all calls of mapcontroller, and i havent error enymore. sorry my bad english
ri...@gmail.com <ri...@gmail.com> #111
It's still not working in 2.3.3 with the latest update to ADT 21.0.0.v201210310015-519525. Is this just an emulator bug or are real devices affected too? Can anybody confirm that this doesn't affect real devices?
Btw: Restarting the device doesn't work for me as in comment 107 proposed.
Btw: Restarting the device doesn't work for me as in comment 107 proposed.
ch...@gmail.com <ch...@gmail.com> #112
Comment 21 by pablolar aur any one else can explain this.... which String should be given to this method getLocationInfo(String address) because i have location.getLatitude() and location.getLongitude() which is given as parameter to the function geocoder.getFromLocation()...thanx i advance..
ta...@gmail.com <ta...@gmail.com> #113
Comment 21 works on emulator for 2.3.3
Confirmed!
Confirmed!
de...@gmail.com <de...@gmail.com> #114
hi guys... i had same issue... when i tried to use gocoder
list = geo.getFromLocationName(PoiString, 10, lowLeftLat, lowLeftLon, upRightLat, upRighLon);
it throws an exception on my samsung galaxy s3... but when i tried it on nexus 7, htc desire and se xperia neo, it worked fine...
so i think problem is on used device. better way how get geocode / address is by using google geocoding api like was showed in post #21
list = geo.getFromLocationName(PoiString, 10, lowLeftLat, lowLeftLon, upRightLat, upRighLon);
it throws an exception on my samsung galaxy s3... but when i tried it on nexus 7, htc desire and se xperia neo, it worked fine...
so i think problem is on used device. better way how get geocode / address is by using google geocoding api like was showed in post #21
he...@gmail.com <he...@gmail.com> #115
[Comment deleted]
an...@gmail.com <an...@gmail.com> #116
[Comment deleted]
ch...@gmail.com <ch...@gmail.com> #117
Hi, sorry for adding another unhelpful comment here, but im having the same problem.
i followed everything on part 1 here ->
https://developers.google.com/maps/documentation/android/v1/hello-mapview
and tried to run my program. It gives me an error "Couldn't get connection factory client."
I had run my program in Xperia Sola. I used my API key. I totally did same code in the tutorial, still the error occurred.
I know this is a very simple code, but i started using android for less than a week now. I have already created a simple google map app but i use FragmentActivity, now i am trying to use MapActivity.
thanks :)
i followed everything on part 1 here ->
and tried to run my program. It gives me an error "Couldn't get connection factory client."
I had run my program in Xperia Sola. I used my API key. I totally did same code in the tutorial, still the error occurred.
I know this is a very simple code, but i started using android for less than a week now. I have already created a simple google map app but i use FragmentActivity, now i am trying to use MapActivity.
thanks :)
jb...@android.com <jb...@android.com> #118
This report applies to a mobile Google application or service, and the issue tracker where you reported it specializes in issues within the Open Source source code of the Android platform.
We are not able to provide support for Google products in this issue tracker. Please report this issue in the appropriate Google Product Forum athttps://productforums.google.com/forum/#!forum/en/
We are not able to provide support for Google products in this issue tracker. Please report this issue in the appropriate Google Product Forum at
ma...@gmail.com <ma...@gmail.com> #119
Same bug here on GS4 running 4.2.2 !!
[Deleted User] <[Deleted User]> #120
Anyone has added this issue at https://productforums.google.com/forum/#!forum/en/ (Google Product Forum) ? This bug has been resolved ???
Description
the following code:
List<Address> address = g.getFromLocationName("1883 Agnew Road Santa Clara
CA", 1);
adb output is:
W/System.err( 322): java.io.IOException: Service not Available
W/System.err( 322): at
android.location.Geocoder.getFromLocationName(Geocoder.java:159)
W/System.err( 322): at
com.iwallis.httpdownload.HttpDownload.onCreateDialog(HttpDownload.java:90)
W/System.err( 322): at
android.app.Activity.createDialog(Activity.java:881)
W/System.err( 322): at
android.app.Activity.showDialog(Activity.java:2547)
W/System.err( 322): at
com.iwallis.httpdownload.HttpDownload$2.onClick(HttpDownload.java:297)
W/System.err( 322): at android.view.View.performClick(View.java:2408)
W/System.err( 322): at
android.view.View$PerformClick.run(View.java:8816)
W/System.err( 322): at
android.os.Handler.handleCallback(Handler.java:587)
W/System.err( 322): at
android.os.Handler.dispatchMessage(Handler.java:92)
W/System.err( 322): at android.os.Looper.loop(Looper.java:123)
W/System.err( 322): at
android.app.ActivityThread.main(ActivityThread.java:4627)
W/System.err( 322): at java.lang.reflect.Method.invokeNative(Native
Method)
W/System.err( 322): at java.lang.reflect.Method.invoke(Method.java:521)
W/System.err( 322): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:
868)
W/System.err( 322): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
W/System.err( 322): at dalvik.system.NativeStart.main(Native Method)