public static void onRequestPermissionsResult(Object o,int requestCode,String[] permissions,int[] grantResults,PermissionListener listener){
  List<String> deniedPermissions=new ArrayList<>(1);
  for (int i=0; i < grantResults.length; i++)   if (grantResults[i] != PackageManager.PERMISSION_GRANTED)   deniedPermissions.add(permissions[i]);
  if (listener == null) {
    callback(o,deniedPermissions.size() > 0 ? PermissionNo.class : PermissionYes.class,requestCode);
  }
 else   if (deniedPermissions.size() > 0) {
    listener.onFailed(requestCode);
  }
 else {
    listener.onSucceed(requestCode);
  }
}

public static void onRequestPermissionsResult ( Object o , int requestCode , String [ ] permissions , int [ ] grantResults , PermissionListener listener ) { List < String > deniedPermissions = new ArrayList < > ( 1 ) ; for ( int i = 0 ; i < grantResults . length ; i ++ ) if ( grantResults [ i ] != PackageManager . PERMISSION_GRANTED ) deniedPermissions . add ( permissions [ i ] ) ; if ( listener == null ) { callback ( o , deniedPermissions . size ( ) > 0 ? PermissionNo . class : PermissionYes . class , requestCode ) ; } else if ( deniedPermissions . size ( ) > 0 ) { listener . onFailed ( requestCode ) ; } else { listener . onSucceed ( requestCode ) ; } }
parse the request results .
