I want to get the application size (in bytes). The way I tried was as follows:
PackageStats ps = new PackageStats(packageInfo.packageName);
int size = ps.codeSize;
This returns 0 every time. (Bascially every value returned is 0 - cacheSize, dataSize etc)
I do not want to use reflection as mentioned here (as its a non documented way)
So is there any way to fetch this information ?