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++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -