[android-developers] Re: Location.getLastKnownLocation returns null

2009-10-17 Thread Auguste Lunang
Now it works fine. I Was just doing the requestLocationUpdates after the getting location. as you said, we first need to turn on the GPS radio . 2009/10/17 Mark Murphy > > Auguste Lunang wrote: > > I can't display my map on android emulator. > > i have, > > locationManager = (Loc

[android-developers] Re: Location.getLastKnownLocation returns null

2009-10-17 Thread Mark Murphy
Auguste Lunang wrote: > I can't display my map on android emulator. > i have, > locationManager = (LocationManager) > getSystemService(Context.LOCATION_SERVICE); > location = locationManager.getLastKnownLocation("gps"); > > After those lines,the Log shows null for locati

[android-developers] Re: Location.getLastKnownLocation returns null

2009-10-17 Thread Saurav
u cannot get gps signals in an emulator u need to give gps inputs from ddms if u wanna get some gps signals in ur program wen u run it from the emulator Regards, Saurav Mukherjee. On Sat, Oct 17, 2009 at 5:31 PM, Auguste Lunang wrote: > Hi, > I can't display my map on android emulator. > i