> So my question: Is it possible to write code that is activating GPS on > the phone?
No. You can send the users to the activity where they can enable GPS, but you cannot enable GPS yourself. > I found a forum post that it is not possible because of security > reasons. Is this true? Correct. > Is it possible that i open the phones settings screen for gps so the > user can activate GPS from within my application? Yes. Try using Settings.ACTION_LOCATION_SOURCE_SETTINGS as an action for an Intent used with startActivity(). I think that's the correct action -- if it does not work, check the other actions defined on Settings. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

