Skip to content

Instantly share code, notes, and snippets.

@pocmo
Last active April 14, 2016 12:33
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 pocmo/58bc91744c7454e8379ce980a78e7c01 to your computer and use it in GitHub Desktop.
Save pocmo/58bc91744c7454e8379ce980a78e7c01 to your computer and use it in GitHub Desktop.
Firefox for Android - Permissions Example
Permissions
.from(context)
.withPermissions(Manifest.permission.ACCESS_FINE_LOCATION)
.onUIThread()
.andFallback(() -> doSomethingIfPermissionsHasNotBeenGranted())
.run(() -> doSomethingWithPermission());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment