11-16-2012 12:26 AM
can any one please help me in turning on the location services programmatically in 5.0 .
my requirement is like its a background service which will track the lat long positions .
even if the user turns of the location services in the gps settings i should be able to turn it ON programmatically
11-16-2012 04:28 AM
Hi, try LocationInfo.isLocationOn(). Don't know if the method is available for OS5. It works for me on OS6 and 7x
Thanks
David
11-16-2012 05:27 AM
AFAIK, it is not possible to programatically enable the location settings. You just have to tell the user that they need to enable them.
11-16-2012 07:03 AM
sorry for the incomplete post, its actually LocationInfo.setLocationOn()
Thanks
David
11-16-2012 07:06 AM
Hi David thanks for the reply LocationInfo.isLocationOn() is not available in on OS5.
please let me know if there is alternate method.
11-16-2012 07:25 AM
Sorry LocationInfo is not available in OS5.0.
Thanks
Priyank.
11-30-2012 10:14 AM
As peter_strange said, there is no inbuilt method to turn the GPS ON Progamatically.
11-30-2012 10:16 AM
You can well try to direct the user to to Manually turn the GPS on if the GPS is switched off. Like is done in case of say Android or Iphone applications. i.e. try to redirect the user to the turn the GPS ON.