Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4362: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4364: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4365: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4366: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
anddev.org • View topic - Non-Static to Static

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: Yahoo [Bot] and 2 guests