问题描述
- android获取应用程序的大小
-
PackageStats packageStats= new PackageStats(getApplicationInfo().packageName);
System.out.println("大小:cacheSize:"+packageStats.cacheSize+",codeSize:"+packageStats.codeSize+",dataSize:"+packageStats.dataSize);
结果全为0,这是怎么回事?
时间: 2024-10-31 03:46:04