Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Turn location setting on and off programmatically #39

Open
bryomuch opened this issue Jan 11, 2018 · 3 comments
Open

Turn location setting on and off programmatically #39

bryomuch opened this issue Jan 11, 2018 · 3 comments

Comments

@bryomuch
Copy link

please help me turn on gps setting on and off without bothering the user

@kuri65536
Copy link
Owner

I don't know the method to enable/disable GPS,
I googled some keywords to know it but I could not find solutions without 'bothering the user'.

@bryomuch
Copy link
Author

do you have a solution where,the user cant tap a single dialog window and thereby turning the location on or off?

@user202729
Copy link

The program "Automate" can do it automatically ("Location provider set state" block), but it is not open source and requires some "special" permissions (android.permission.WRITE_SECURE_SETTINGS, which must be set over adb).

For the user way, just open the location settings page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants