locationManager is not initialized. That is why you are getting this
error.

LocationManager locationManager =
context.getSystemService(Context.LOCATION_MANAGER_SERVICE);

You need to initialize it before using it.

Thanks and Regards,
Kumar Bibek

http://tech-droid.blogspot.com

On Mar 25, 12:37 am, hwrdprkns <[email protected]> wrote:
> Hi Guys,
>
> I just have a quick question about location updates. I don't know why
> but it keeps saying I have an error on line 47, where I make the call
> to start requesting location updates.
>
> I don't know why but whenever i try to run the program on my AVD it
> says that I have a NullPointerException on line 47, which I can't seem
> to get through.
>
> If you guys have any ideas, that would be very helpful. Thanks a
> bunch!
>
> Here is the code from PasteBin
>
> http://pastebin.com/d3KVVyFV

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
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

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words "REMOVE ME" as the subject.

Reply via email to