Since you're asking on android-porting I'll assume this is a platform build. The build system runs proguard on non-eng platform builds which should strip out dead code. To verify, you could look at size of your APK, add some more test code, re-build, and see if APK size increases. If it doesn't increase then the proguard is stripping that dead code.
On Sep 14, 6:59 pm, Pratik Prajapati <[email protected]> wrote: > Dear All, > > There are a lot of classes in my (big) APK which are used no where(some test > code is part of the APK with the actual service). Will dalvik VM keep these > classes in memory at runtime? ( many classes are not used to create any > object out of them). > > As per my understanding, dalvik creates a single .dex file by combining all > the .class in the apk. Does dalvik breaks this .dex file while running its > bytecode and use the minimum code in memory? > > -- > Regards, > Pratik Prajapati -- unsubscribe: [email protected] website: http://groups.google.com/group/android-porting
