Code example for PathClassLoader

0
    	if (!sWasHtcSenseTested) {
    		sWasHtcSenseTested = true;
 
    		try { 
	            // No we don't. Search for HTC Contacts Application class (HTC Sense) 
	            PathClassLoader classLoader =  new PathClassLoader(HTC_CONTACTS_APK_PATH,
	            		context.getClassLoader());
	            Class.forName(KNOWN_HTC_CONTACTS_CLASS, true, classLoader);
	             
	            sIsHtcSenseDevice = true;
            }  
            catch(Exception ex) {
            	sIsHtcSenseDevice = false;
            } 
       	} 
    	return sIsHtcSenseDevice;
    } 
     
    /** 
     * Returns the version name from the AndroidManifest.xml file. 
Contextual code suggestions in your IDE  Get Codota for Java