[android-developers] Re: Geocoder throwing exception
Server is always running at Google.com Your phone needs a connection to this server in order to draw the map or to geocode a string. Without such connection you may see some pieces of map because of GoogleMaps caching but geocode interface requires direct channel to the server. On Nov 30, 6:46 pm, kiran saikiran@gmail.com wrote: Can we start Geocoding server through application On Dec 1, 3:23 am, TreKing treking...@gmail.com wrote: On Tue, Nov 30, 2010 at 3:04 PM, ip332 iprile...@gmail.com wrote: As we know Google map is stored on the web therefore you must have 3G, Edge or WiFi channels enabled in order to use Geocoding. Also, even if you have a perfect connection, the actual geo-coding server has to actually be running. --- -- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Geocoder throwing exception
On Wed, Dec 1, 2010 at 12:50 PM, ip332 iprile...@gmail.com wrote: Your phone needs a connection to this server in order to draw the map or to geocode a string. While geocoding and maps are related, they're not the same thing and I highly doubt they're backed by the same server. It's entirely possible to have full Maps access and have the geocoding fail. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Geocoder throwing exception
Most likely the servers for maps and geocoding are different, however the common thing is that both services require connection. They both use the same network (cellular or WiFi) so if the network is down none of them will work (except cached map data). Geocode may fail if you submit wrong address, that is true but the original question was why is it throwing exception. On Dec 1, 12:31 pm, TreKing treking...@gmail.com wrote: On Wed, Dec 1, 2010 at 12:50 PM, ip332 iprile...@gmail.com wrote: Your phone needs a connection to this server in order to draw the map or to geocode a string. While geocoding and maps are related, they're not the same thing and I highly doubt they're backed by the same server. It's entirely possible to have full Maps access and have the geocoding fail. --- -- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
RE: [android-developers] Re: Geocoder throwing exception
I recall there was an openmap where you could just download the area you need and store it to SD card and then view it from there, this can be beneficial to user who does not have internet. I'm trying to develop this software but I need a lot more time. Progress can be found at http://android.littlebearz.com/ -Original Message- From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of kiran Sent: Tuesday, November 30, 2010 9:47 PM To: Android Developers Subject: [android-developers] Re: Geocoder throwing exception Can we start Geocoding server through application On Dec 1, 3:23 am, TreKing treking...@gmail.com wrote: On Tue, Nov 30, 2010 at 3:04 PM, ip332 iprile...@gmail.com wrote: As we know Google map is stored on the web therefore you must have 3G, Edge or WiFi channels enabled in order to use Geocoding. Also, even if you have a perfect connection, the actual geo-coding server has to actually be running. --- -- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Geocoder throwing exception
On Wed, Dec 1, 2010 at 5:07 PM, ip332 iprile...@gmail.com wrote: however the common thing is that both services require connection. They both use the same network (cellular or WiFi) so if the network is down none of them will work (except cached map data). Well ... yeah ... - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Geocoder throwing exception
Off-topic, but 2 important cents: Do you really need to develop it by yourself when several more or less completed projects are available on the Android market already ? For example: http://www.mapdroyd.com/ or http://www.andnav.org/ The second one is (or going to be) an open source project. On Dec 1, 4:22 pm, XiaoXiong Weng ad...@littlebearz.com wrote: I recall there was an openmap where you could just download the area you need and store it to SD card and then view it from there, this can be beneficial to user who does not have internet. I'm trying to develop this software but I need a lot more time. Progress can be found athttp://android.littlebearz.com/ -Original Message- From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of kiran Sent: Tuesday, November 30, 2010 9:47 PM To: Android Developers Subject: [android-developers] Re: Geocoder throwing exception Can we start Geocoding server through application On Dec 1, 3:23 am, TreKing treking...@gmail.com wrote: On Tue, Nov 30, 2010 at 3:04 PM, ip332 iprile...@gmail.com wrote: As we know Google map is stored on the web therefore you must have 3G, Edge or WiFi channels enabled in order to use Geocoding. Also, even if you have a perfect connection, the actual geo-coding server has to actually be running. --- -- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Geocoder throwing exception
Do you really need to develop it by yourself when several more or less No, i am just learning android. On Dec 2, 6:06 am, ip332 iprile...@gmail.com wrote: Off-topic, but 2 important cents: Do you really need to develop it by yourself when several more or less completed projects are available on the Android market already ? For example:http://www.mapdroyd.com/orhttp://www.andnav.org/ The second one is (or going to be) an open source project. On Dec 1, 4:22 pm, XiaoXiong Weng ad...@littlebearz.com wrote: I recall there was an openmap where you could just download the area you need and store it to SD card and then view it from there, this can be beneficial to user who does not have internet. I'm trying to develop this software but I need a lot more time. Progress can be found athttp://android.littlebearz.com/ -Original Message- From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of kiran Sent: Tuesday, November 30, 2010 9:47 PM To: Android Developers Subject: [android-developers] Re: Geocoder throwing exception Can we start Geocoding server through application On Dec 1, 3:23 am, TreKing treking...@gmail.com wrote: On Tue, Nov 30, 2010 at 3:04 PM, ip332 iprile...@gmail.com wrote: As we know Google map is stored on the web therefore you must have 3G, Edge or WiFi channels enabled in order to use Geocoding. Also, even if you have a perfect connection, the actual geo-coding server has to actually be running. --- -- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Geocoder throwing exception
Geocoding has nothing in common with GPS but it requires complete map DB (to search cities and streets) As we know Google map is stored on the web therefore you must have 3G, Edge or WiFi channels enabled in order to use Geocoding. On Nov 30, 1:13 am, saikiran n saikiran@gmail.com wrote: Hi, I am doing some application to check Geocoder functionality I am executing the following code snippet Geocoder fwdGeocoder = new Geocoder(this, Locale.US); String streetAddress = 160 Riverside Drive, New York, New York; ListAddress locations = null; try { locations = fwdGeocoder.getFromLocationName(streetAddress, 10); } catch (IOException e) { e.printStackTrace(); Log.e(TAG, error occured); } I am testing this app in real device and my apk is build for Google api 2.2 It is throwing excepion as follows 01-01 02:27:17.781: WARN/System.err(3186): java.io.IOException: Service not Available 01-01 02:27:17.785: WARN/System.err(3186): at android.location.Geocoder.getFromLocationName(Geocoder.java:159) 01-01 02:27:17.785: WARN/System.err(3186): at sct.android.geocodertest.TestActivity.onCreate(TestActivity.java:44) 01-01 02:27:17.785: WARN/System.err(3186): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047) 01-01 02:27:17.785: WARN/System.err(3186): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627) 01-01 02:27:17.785: WARN/System.err(3186): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679) 01-01 02:27:17.785: WARN/System.err(3186): at android.app.ActivityThread.access$2300(ActivityThread.java:125) 01-01 02:27:17.785: WARN/System.err(3186): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033) 01-01 02:27:17.785: WARN/System.err(3186): at android.os.Handler.dispatchMessage(Handler.java:99) 01-01 02:27:17.785: WARN/System.err(3186): at android.os.Looper.loop(Looper.java:123) 01-01 02:27:17.789: WARN/System.err(3186): at android.app.ActivityThread.main(ActivityThread.java:4627) 01-01 02:27:17.789: WARN/System.err(3186): at java.lang.reflect.Method.invokeNative(Native Method) 01-01 02:27:17.789: WARN/System.err(3186): at java.lang.reflect.Method.invoke(Method.java:521) 01-01 02:27:17.793: WARN/System.err(3186): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java: 868) 01-01 02:27:17.793: WARN/System.err(3186): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) 01-01 02:27:17.793: WARN/System.err(3186): at dalvik.system.NativeStart.main(Native Method) I included the following permissions in manifest file uses-permission android:name=android.permission.INTERNET/uses-permission uses-permission android:name=android.permission.ACCESS_FINE_LOCATION/uses-permission uses-permission android:name=android.permission.ACCESS_COARSE_LOCATION/uses-permission My device GPS is turned on Any help -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Geocoder throwing exception
On Tue, Nov 30, 2010 at 3:04 PM, ip332 iprile...@gmail.com wrote: As we know Google map is stored on the web therefore you must have 3G, Edge or WiFi channels enabled in order to use Geocoding. Also, even if you have a perfect connection, the actual geo-coding server has to actually be running. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Geocoder throwing exception
. In the same device i run some apk which is showing google maps. I don't know what code they were using in the apk. You mean to say that should i test with wifi instead of GPS On Dec 1, 2:04 am, ip332 iprile...@gmail.com wrote: Geocoding has nothing in common with GPS but it requires complete map DB (to search cities and streets) As we know Google map is stored on the web therefore you must have 3G, Edge or WiFi channels enabled in order to use Geocoding. On Nov 30, 1:13 am, saikiran n saikiran@gmail.com wrote: Hi, I am doing some application to check Geocoder functionality I am executing the following code snippet Geocoder fwdGeocoder = new Geocoder(this, Locale.US); String streetAddress = 160 Riverside Drive, New York, New York; ListAddress locations = null; try { locations = fwdGeocoder.getFromLocationName(streetAddress, 10); } catch (IOException e) { e.printStackTrace(); Log.e(TAG, error occured); } I am testing this app in real device and my apk is build for Google api 2.2 It is throwing excepion as follows 01-01 02:27:17.781: WARN/System.err(3186): java.io.IOException: Service not Available 01-01 02:27:17.785: WARN/System.err(3186): at android.location.Geocoder.getFromLocationName(Geocoder.java:159) 01-01 02:27:17.785: WARN/System.err(3186): at sct.android.geocodertest.TestActivity.onCreate(TestActivity.java:44) 01-01 02:27:17.785: WARN/System.err(3186): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047) 01-01 02:27:17.785: WARN/System.err(3186): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627) 01-01 02:27:17.785: WARN/System.err(3186): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679) 01-01 02:27:17.785: WARN/System.err(3186): at android.app.ActivityThread.access$2300(ActivityThread.java:125) 01-01 02:27:17.785: WARN/System.err(3186): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033) 01-01 02:27:17.785: WARN/System.err(3186): at android.os.Handler.dispatchMessage(Handler.java:99) 01-01 02:27:17.785: WARN/System.err(3186): at android.os.Looper.loop(Looper.java:123) 01-01 02:27:17.789: WARN/System.err(3186): at android.app.ActivityThread.main(ActivityThread.java:4627) 01-01 02:27:17.789: WARN/System.err(3186): at java.lang.reflect.Method.invokeNative(Native Method) 01-01 02:27:17.789: WARN/System.err(3186): at java.lang.reflect.Method.invoke(Method.java:521) 01-01 02:27:17.793: WARN/System.err(3186): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java: 868) 01-01 02:27:17.793: WARN/System.err(3186): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) 01-01 02:27:17.793: WARN/System.err(3186): at dalvik.system.NativeStart.main(Native Method) I included the following permissions in manifest file uses-permission android:name=android.permission.INTERNET/uses-permission uses-permission android:name=android.permission.ACCESS_FINE_LOCATION/uses-permission uses-permission android:name=android.permission.ACCESS_COARSE_LOCATION/uses-permission My device GPS is turned on Any help -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Geocoder throwing exception
Can we start Geocoding server through application On Dec 1, 3:23 am, TreKing treking...@gmail.com wrote: On Tue, Nov 30, 2010 at 3:04 PM, ip332 iprile...@gmail.com wrote: As we know Google map is stored on the web therefore you must have 3G, Edge or WiFi channels enabled in order to use Geocoding. Also, even if you have a perfect connection, the actual geo-coding server has to actually be running. --- -- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Geocoder throwing exception
That's not under your control On 01-Dec-2010 8:16 AM, kiran saikiran@gmail.com wrote: Can we start Geocoding server through application On Dec 1, 3:23 am, TreKing treking...@gmail.com wrote: On Tue, Nov 30, 2010 at 3:04 PM, ip332 iprile...@gmail.com wrote: As we know Google map is s... TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are su... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en