Is it possible to load an android sdk class dynamically at runtime?
Let's say I want to reload the class android.os.Debug
dynamically at runtime, is it possible to reload it dynamically.
I tried extending ClassLoader
and android provided DexClassLoader
but these require full file path of the class to load it into memory, I don't know where does android sdk class files resides in apk/dex.
DexClassLoader classLoader = new DexClassLoader(dexPath, optimizedDirectory,librarySearchPath ,Parent);