public final boolean isPermissionGranted(final String permission){
  return context.checkCallingPermission(permission) == PackageManager.PERMISSION_GRANTED;
}

public final boolean isPermissionGranted ( final String permission ) { return context . checkCallingPermission ( permission ) == PackageManager . PERMISSION_GRANTED ; }
is permission granted boolean .
