Non-Static to Static

Put problem concerning MapActivities, MapViews, Overlays and GPS in this forum.

Non-Static to Static

Postby smbogdan » Thu May 26, 2011 6:35 pm

Hello there, I am trying to get the gps coordinates and pass them between classes, but i found a little problem, one method is static and the "getSystemService"method isn't, is it possible to fix this issue?
smbogdan
Junior Developer
Junior Developer
 
Posts: 24
Joined: Thu Mar 10, 2011 4:52 pm

Top

Re: Non-Static to Static

Postby abhijitphatak28 » Wed Jun 01, 2011 6:51 am

If you could post your code here, we can definatly look into the exact problem.

The basic steps to retrieve location co-ordinates from the device is to use Location Manager and get its instance from getSystemService by providing context as LOCATION_SERVICE and then we need to call requestLocationUpdate on location manager by providing which kind of location updates your application wants (GPS or Network) and provides a listener for that. In the listener, application will start updating the co-ordinates.

Thanks

Regards
-Abhijit
User avatar
abhijitphatak28
Senior Developer
Senior Developer
 
Posts: 102
Joined: Sat Feb 12, 2011 1:18 pm
Location: Indore

Top

Return to Map Problems

Who is online

Users browsing this forum: No registered users and 3 guests