Hi everyone, this might sound foolish, but I was exploring Dalvik source 
code last couple of days to get to know what MultiDex support library is 
actually doing.
Okay, after app build has completed we get one main .dex file and one or 
more secondary .dex files. Those are then patched in 
Application.attachBaseContext().
However, I found out that DexPathList 
<https://android.googlesource.com/platform/libcore-snapshot/+/ics-mr1/dalvik/src/main/java/dalvik/system/DexPathList.java>
 (owned 
by Dalvik's classloader PathClassLoader) method called splitAndAdd iterates 
through all files in current directory and populates a list of elements 
that's passed to 'makeDexElements' method.
So, wouldn't secondary dexes be added by default even without 
MultiDex.install(...)?

Point me if I'm wrong with something.


Best regards 

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/492add14-3a7c-4137-8002-1a75a5d9087c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to