public class EasyPermissions { private static final String TAG = "EasyPermissions" ; private static PermissionDialog finalPermissionDialog = null ; public interface PermissionCallbacks { void onPermissionsGranted( int requestCode, List<String> perms); void onPermissionsDenied( int requestCode, List<String> perms); void onPermissionsPermanentlyDeclined( int requestCode, List<String> perms); } /** * Check if the calling mContext has a set of permissions. * * @param context the calling mContext. * @param perms one ore more permissions, such as { @code android.Manifest.permission.CAMERA}. * @return true if all permissions are already granted, false if at least one permission * is not yet granted. */ public static boolean hasPermissions(Context context, String... perms) { // Always return true for SDK < M, let the system deal with the permissions if (Bu...