I had search lot but i am not finding any best solution for getting app size.we can get app size through aidl (IPackageStatsObserver.class,PackageStats).but i am not doing this.Is it legal way to get app size through aidl.
Anyone help me.
I had search lot but i am not finding any best solution for getting app size.we can get app size through aidl (IPackageStatsObserver.class,PackageStats).but i am not doing this.Is it legal way to get app size through aidl.
Anyone help me.
If you look at ManageApplications.java, you'll see that they use the hidden getPackageSizeInfo method of the PackageManager. This isn't part of the public API, so you shouldn't really use it.
Here's an example of how you shouldn't use it!