@SuppressWarnings({"unchecked","rawtypes"}) private static Method findApplyMethod(){
  try {
    Class clz=SharedPreferences.Editor.class;
    return clz.getMethod("apply");
  }
 catch (  NoSuchMethodException e) {
  }
  return null;
}

@ SuppressWarnings ( { "unchecked" , "rawtypes" } ) private static Method findApplyMethod ( ) { try { Class clz = SharedPreferences . Editor . class ; return clz . getMethod ( "apply" ) ; } catch ( NoSuchMethodException e ) { } return null ; }
check apply mthod by reflect
