Skip to content

Instantly share code, notes, and snippets.

@alorma
Created July 29, 2015 13:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alorma/8c73970b145ffc73e90c to your computer and use it in GitHub Desktop.
Save alorma/8c73970b145ffc73e90c to your computer and use it in GitHub Desktop.
/**
* returns true if mock location enabled, false if not enabled.
*/
public static boolean isMockSettingsON(Context context) {
return !Settings.Secure.getString(context.getContentResolver(),
Settings.Secure.ALLOW_MOCK_LOCATION).equals("0");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment