. 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"; > > List<Address> 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