android - Turn on/off gps using button without getting into setting menu -


i want ask turn on gps in android without getting setting menu. 1. method possibly do? 2. if yes how that? thank you.

it impossible. user can turn on/off gps.
done because shouldn't able user's location if doesn't want it.
thing can ask him turn on/off opening gps settings:

startactivity(new intent(settings.action_location_source_settings)); 

Comments

Popular posts from this blog

ios - MKAnnotationView layer is not of expected type: MKLayer -

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -