PackageManager. get size of an installed package?

by Grigory F. » Thu, 12 Feb 2009 16:47:47 GMT

Sponsored Links
 Hi folks,

i work on custom Application Manager and try to get the disk usage of
installed package.

So PackageManager.getpackageSizeInfo was removed from SDK on 0.9->1.0
update pkgName)  (cacheSize, codeSize,
dataSize) returns always "0"

Size of phys. file ( in "/data/app" seems wrong/not

Has anybody any solution to get the total disc space used by an
installed package?



PackageManager. get size of an installed package?

by Grigory F. » Fri, 13 Feb 2009 23:32:30 GMT

 Know nobody alternative for PackageManager.getpackageSizeInfo()?

Sponsored Links

PackageManager. get size of an installed package?

by IceskYsl » Sat, 14 Mar 2009 02:10:32 GMT

 i got the same problem,code like:

PackageStats ps = new PackageStats(_packageName);

and (cacheSize, codeSize, dataSize) returns always "0"

and is this a bug???


Other Threads

1. SDK 1.1 and locationManager.getLastKnownLocation Problems

Hello all,
I was hoping that SDK 1.1 would solve some problems I've had using
Emulator Location Control or telnet command line to update my location
for the simple example program below. I haven't had any luck with
this. I'm on Windows XP, SDK 1.1, Eclipse 3.4, ADT plugin. I've check
my Language Options as described here

2. Paid applications - are they downloadable now?


I'm a UK-based developer. Is there any way for me to tell what paid
applications are available in the US? Also, can US customers now
download paid applications?


3. cupcake codebase

4. Install Android on a Wondows Mobile device.

5. synchronizing the contacts

6. Error when try to running Android application into Netbeans 6.5

7. Why a static variay variable can not be released when executing finish() method to exit my application?