does getLastKnownLocation have a location to give yet? try running
maps first then run your app

On Oct 22, 11:42 pm, CSUIDL PROGRAMMEr <[EMAIL PROTECTED]> wrote:
> Hello,
> I am a newbie android developer. I am trying to simulate gps
> functionality in android sdk 1.0.
>
> I am using location manager  to get getlatitude function.
>
> http://pastebin.com/m56feb30c
>
> I am loading a google kml  through my ddms.
>
> I get a java null pointer exception.
> What am i doing wrong here
>
> Thanks
--~--~---------~--~----~------------~-------~--~----~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to