Thanks for replying Pratap, but unfortunately it didn't fix the problem. Any other suggestion please?
On Feb 3, 10:23 am, PRATAP SOLAPUR <pratap.sola...@gmail.com> wrote: > Add ACCESS_FINE_LOCATION permission and INTERNET permission............ > > On 2/3/09, pulkit <pulkit.bhard...@gmail.com> wrote: > > > > > Hi, > > > We're working on Location based services with android emulator. But > > the issue is that the application crashes when any of the following > > statements executes:- > > > Location location = locationManager.getLastKnownLocation(locationManag > > er.getBestProvider(CRITERIA, true)); > > > OR > > > Location location = locationManager.getLastKnownLocation("gps"); > > > We have also defined permissions in manifest.xml as follows:- > > > <uses-permission android:name="android.permission.ACCESS_GPS"/> > > <uses-permission android:name="android.permission.ACCESS_LOCATION"/> > > > PS: we are also spoofing coordinates using ddms. Google map works > > fine, but our application keeps crashing. > > > Any inputs please. Thanks in advance. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---