permission-bitte
sensorberg-dev
73
Visit GitHub RepoPermissions

Permission Bitte

Download

Easiest way to ask for user permission in Android

  • Absurdly minimal API. There're only 3 static methods and one interface with callbacks.
  • No annotations, no worry about onRequestPermissionsResult, no worry about shouldShowRequestPermissionRationale
  • Plays nice with ArchitectureComponents, lets your ViewModel implement the interface

The API

PermissionBitte.shouldAsk(FragmentActivity, BitteBitte) // let you know if you need permission
PermissionBitte.ask(FragmentActivity, BitteBitte) // ask for permission and handle all callbacks
PermissionBitte.goToSettings(FragmentActivity) // just a helper

The Callback

interface BitteBitte
  void yesYouCan(); // all permissions accepted
  void noYouCant(); // the user marked "Never ask again"
  void askNicer(); // show rationale

Gradle

repositories {
  jcenter()
}

dependencies {
  implementation 'com.sensorberg.libs:permission-bitte:<latest-version>'
}
Become a better Android Developer
Millions of developers are learning at MindOrks

Online Training Program

Featured Blogs

Our Team

MindOrks is Certainly one of the best online blog to stay on top of all the Android development news, coding and design patterns. Finally a blog I can count on to keep myself updated with latest and greatest things happening in Android world.

Vipul Shah
Android Developer
Microsoft

Become Pro in Android by watching videos

OUR LEARNERS WORK AT