Count Android APK dex LinearAlloc usage
DexClassLoader classLoader = new DexClassLoader("目标apk路径", getApplicationInfo().dataDir, null,this.getClass().getClassLoader());
CheckDex.checkPreDexInfo(new String("classes.dex的文件路径"),new String("中间文件输出路径"),classLoader);
alloc size的差值在**460万以下(此为经验值,可能会再降低)**为安全值
由于各个设备ROM的差异,初始时加载的jar个数种类均有差异,空白应用所需的大小不一,导致5M无法全部被应用使用
D/dalvikvm-CheckPreDex﹕ Loaded DEX file before alloc size = 3330900 loadedClasses count = 3465
D/dalvikvm-CheckPreDex﹕ Loaded DEX file after alloc size = 8806148 loadedClasses count = 12236