Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Easy Permissions Example 1 Java
public class ExampleService extends Service implements IPermissionsListener {
@Override
public void onCreate() {
super.onCreate();
// Will request all permissions from the Manifest automatically.
EasyPermissions.getInstance().requestPermissions(this);
}
@Override
public void onCompleted(Set<String> grantedPermissions, Set<String> deniedPermissions) {}
@Override
public void onFailure(Throwable throwable) {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.