public void setClassLoader ( ClassLoader cl ) throws ClassNotFoundException , SecurityException , NoSuchMethodException { if ( cl == null ) cl = this . getClass ( ) . getClassLoader ( ) ; SystemProperties = cl . loadClass ( "android.os.SystemProperties" ) ; getString = SystemProperties . getMethod ( "get" , new Class [ ] { String . class , String . class } ) ; getBoolean = SystemProperties . getMethod ( "getBoolean" , new Class [ ] { String . class , boolean . class } ) ; }
Sets the classloader to lookup the class for android . os . SystemProperties