On Thu, Sep 15, 2011 at 9:59 AM, Pratik Prajapati <
pratik.prajap...@gmail.com> 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).
>

only when classes are used, dvm loads these classes into memory.


>
> 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?
>
> it is not *necessary* to breaks this .dex file to some .class files.
just read the .dex file then get the class info that you want, that's okay.

the important reason, dvm combine many .class files to one file, is to save
much space.


> --
> Regards,
> Pratik Prajapati
>
>
>
>  --
> unsubscribe: android-kernel+unsubscr...@googlegroups.com
> website: http://groups.google.com/group/android-kernel

-- 
unsubscribe: android-kernel+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-kernel

Reply via email to