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 - Network or GPS Location for Proximity

Network or GPS Location for Proximity

Put your problem here if it does not fit any of the other categories.

Network or GPS Location for Proximity

Postby Joe86 » Wed Aug 10, 2011 4:04 pm

Hi there,

i have following problem:
I have a app that uses android.permission.ACCESS_FINE_LOCATION. In my App, i will add some proximity Alerts and react to them. This works all fine, but now, i have a problem to switch between network (mock) and gps location.
I cant find any option to switch for the proximity alert between network and gps provider. The proximity alert seems to use every time the gps, if available. I want that the user of my app is able to select manualy between network and gps for the proximity alerts.
Is there any chance to do this?

Best regards,
Joe
Joe86
Freshman
Freshman
 
Posts: 2
Joined: Fri Jun 17, 2011 2:27 pm

Top

Re: Network or GPS Location for Proximity

Postby phishman3579 » Tue Sep 20, 2011 3:19 am

May I misunderstood the question but a parameter of the LocationManager is the type of location provider..

Something like this:
locationMgr.requestLocationUpdates(LocationManager.GPS_PROVIDER, MIN_TIME, MIN_DISTANCE, this);
or
locationMgr.requestLocationUpdates(LocationManager.NETWORK_PROVIDER , MIN_TIME, MIN_DISTANCE, this);
phishman3579
Freshman
Freshman
 
Posts: 9
Joined: Sun Aug 28, 2011 4:49 pm

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: Yahoo [Bot] and 10 guests