On Dec 17, 2:45 pm, "B++" <[email protected]> wrote: > PathClassLoader classLoader = new PathClassLoader("/path/to/apk.apk", > getClassLoader()); > classLoader.loadClass("path.to.class"); > classLoader = null; > > } > > Only these three lines will cause a "leak" if you keep on creating > this activity and destroying it with the back button.
So if I understand this correctly, you're creating a new class loader each time, and re-loading one or more classes in the new class loader. So if you start this 10 times you'll have 10 copies of class Foo, each from a different class loader. Why not just load the class(es) once? What is it you're trying to do? What APK are you opening? The Dalvik VM doesn't presently unload classes. Given the nature of Android applications, the feature is not likely to percolate to the top of the "to do" list any time soon. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

