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

Require GPS to be enabled #34

Open
13rac1 opened this issue Jan 31, 2015 · 3 comments
Open

Require GPS to be enabled #34

13rac1 opened this issue Jan 31, 2015 · 3 comments

Comments

@13rac1
Copy link
Member

13rac1 commented Jan 31, 2015

Since this app doesn't do much without GPS, we need to make sure it's enabled. We can use other location detecting methods in the future, but GPS is required for now.

@13rac1 13rac1 self-assigned this Jan 31, 2015
@13rac1 13rac1 added this to the FAMSF Store submission milestone Jan 31, 2015
@13rac1
Copy link
Member Author

13rac1 commented Jan 31, 2015

maybe

String GpsProvider = Settings.Secure.getString(getContentResolver(),
Settings.Secure.LOCATION_PROVIDERS_ALLOWED);

if (GpsProvider.toLowerCase().indexOf("gps") >= 0 ) {
    return true;
} else {
    return false;
}

@multidynamic
Copy link
Contributor

The MainActivity currently enables the Listen button for certain criteria, we can simply add whether Location services are set on to that criteria.

We could also send an intent to the settings app to prompt the user to enable it.

And, maybe use one of these icons: http://google.github.io/material-design-icons/

@multidynamic
Copy link
Contributor

If it is ever decided to use the fusedLocation branch, an update to play services 7 provides a call to prompt the user to authorize location without leaving the app.

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

No branches or pull requests

2 participants