मुख्य लक्ष्य एंड्रॉइड सिस्टम क्लास (गतिविधि, व्यू इत्यादि) को अपने कार्यान्वयन के साथ ओवरराइड करना है। कस्टम वर्ग लोड करने के लिएकस्टम क्लास लोडिंग/ओवरराइडिंग एंड्रॉइड-नेटिव क्लासेस
http://android-developers.blogspot.com/2011/07/custom-class-loading-in-dalvik.html
classloader कार्यान्वित किया जाता है, गैर प्रणाली वर्ग (कस्टम वर्ग) लोड हो रहा है काम करता है।
लेकिन जब मैं अपने कार्यान्वयन के साथ गतिविधि लोड करने का प्रयास - यह लोड नहीं करता है, क्योंकि classloader पहले से ही अपने कैश में इस वर्ग के होते हैं: बजाय अपने ही वर्ग सुई
/**
* Returns the class with the specified name if it has already been loaded
* by the virtual machine or {@code null} if it has not yet been loaded.
*
* @param className
* the name of the class to look for.
* @return the {@code Class} object or {@code null} if the requested class
* has not been loaded.
*/
protected final Class<?> findLoadedClass(String className) {
ClassLoader loader;
if (this == BootClassLoader.getInstance())
loader = null;
else
loader = this;
return VMClassLoader.findLoadedClass(loader, className);
}
मैं कैसे बदल सकता वर्ग लोडर प्रणाली का?