Android ( Java ): Enable GPS or WiFi with Intent -


i´ve small question. possible enable gps intent? tried intent intent=new intent(settings.action_location_source_settings); opens gps settings, want change (enable/disable) gps settings. (sorry bad english)

is possible enable gps intent?

no, privacy reasons. apps cannot enable gps, outside of unusual scenarios (e.g., rooted devices).

i tried intent intent=new intent(settings.action_location_source_settings); opens gps settings

correct. user can choose whether or not enable or disable of location providers on screen.

if willing dependent upon play services, added settingsapi in 7.0.0 release allows pop simpler dialog user elect whether or not enable locations, though effect largely same action_location_source_settings.


Comments

Popular posts from this blog

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

order - Notification for user in user account opencart -