[android-developers] Re: getLastKnownLocation is not working.

2009-01-05 Thread Mark Murphy
Amit Samel wrote: Hello guys, i am very much new to android platform. i am trying to implement some codes from Android: A Programmer’s Guide. i have installed latest sdk thats why there are some issues regarding deprecated apis. when i was trying to call getCurrentLocation() i got error ,

[android-developers] Re: getLastKnownLocation is not working.

2009-01-05 Thread Keiji Ariyama
Hi Amir, Where did you test that code? Emulator or dev phone? You may be missing the appropriate permissions (e.g., ACCESS_FINE_LOCATION) in your AndroidManifest.xml file. Mark is right. Additionally, I suppose that cause of crash is null pointer exception. Double latPoint =