java - How to programmatically enable GPS in Android Cupcake -


I am currently writing an app in Android which works with GPS. At the moment I will know whether GPS is enabled or not. My problem is that I want to enable GPS on app startup if it is disabled. How can I do this program?

You can not start with Android 1.5. Pop up to allow the user to turn it on / off to open as much activity as you can

to open this article android Use action taken in .provider.Settings.ACTION_LOCATION_SOURCE_SETTINGS .

Comments

Popular posts from this blog

c# - PInvoke of NetUserAdd returns 24 -

c# - XMLDocument.Validate Error: System.InvalidOperationException : The XmlSchemaSet on the document is either null or has no schemas in it -