How to start my app before user launching it? Look this logcat messages
when apk be installed, android do optimizing classes.dex from apk. and sometime, android execute classes.dex in background. before user execute it. so, android can execute dex2opt for pdflib.dex.jar. 07-26 11:44:33.719: I/PackageManager.DexOptimizer(792): Running dexopt (dex2oat) on: /data/app/vmdl114384519.tmp/base.apk pkg=com.google.android.apps.magazines isa=arm vmSafeMode=false debuggable=false oatDir = /data/app/vmdl114384519.tmp/oat bootComplete=true 07-26 11:44:33.764: I/dex2oat(13951): Starting dex2oat. 07-26 11:44:48.089: I/dex2oat(13951): dex2oat took 14.325s (threads: 4) arena alloc=3MB java alloc=13MB native alloc=44MB free=4MB 07-26 11:44:49.604: I/dex2oat(14074): /system/bin/dex2oat --dex-file=/data/user/0/com.google.android.apps.magazines/app_dex/pdflib.dex.jar --oat-file=/data/user/0/com.google.android.apps.magazines/app_outdex-pdflib.dex.jar/pdflib.dex.dex 07-26 11:44:52.776: I/dex2oat(14074): dex2oat took 3.175s (threads: 4) arena alloc=18MB java alloc=510KB native alloc=23MB free=17MB but sometime, android skip this step. why? and how force triggering this step? -- 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/781655fd-51fa-405e-9355-e4f8b27146f8%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

