how to check and turn On GPS if off?
my application is reading the Latitude and longitude, it is working fine,
but it is giving exception when the option->Advance Option->GPS->GPS Services "Location off" otherwise when "Location On" then it is woking.
i tried to find the API to turn on, but i did not get, if any body know
how to check either GPS is on or off , and if off then how to On because
without turn on my application will give Exception
please help me.
Thanks and regards
There won't be an API for that. If the user turned off the GPS, why should an application be able to over ride that decision and turn it back on?
And adding to hrbuckley's post, your code should be expecting this situation and catching the exception.
i am able to send mail but when i am going to read the position when GPS is already off then it is creating problem.
so, i have to first check either GPS is on or off, if off then turn it on and read the Lon/Lati
therefor, if any one know the API to turn on the GPS then kindly help me.
Third party developer applications can't do this. You will have to tell your users that if they want your program to function correctly location base services have to be turned on.
|All times are GMT -5. The time now is 10:38 AM.|
Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.