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

android.content.pm.PackageStats(String pkgName)  (cacheSize, codeSize,
dataSize) returns always "0"

Size of phys. file (java.io.File) in "/data/app" seems wrong/not
completely.

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

thanks!

Grigory
--~--~---------~--~----~------------~-------~--~----~



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. desire froyo stok ro

Sdh Ada yg post ruu nya Di forum luar

New Base ROM 2.06.832 .1 _
New Radio _32. 42.00.32U_5. 09.00. 08
official kernel froyo for desire

Walaupun statusnya test Dan terbatas / bkn WWE
Paling tdk memberi harapan semakin dekatnya final release
Dan Semoga para juruk masak mengobrak-abrik ROM tsb sbg bahan Custom ROM
Dan Semoga cepat be Di root
Cmiiw

sent from hTC Desire froyoROM: DeFrost 2.0a UV OC 1,3Ghz
KERNEL: 2.6.32.9-bravo-froyo-r15
RADIO: 32.41.00.32U_5.08.00.04
Built: FRF91

-- 
"Indonesian Android Community [id-android]" 

2. Could a Galaxy S owner give me a hand and test a free app for me?

Robert,

I just tried it - Galaxy S, firmware I9000XXJF5, build ECLAIR.XWJFB.

Worked perfectly.

Do you still want the logcat?

-- Kostya

16.07.2010 21:38, Robert Green :
So I need someone with a Galaxy S to run Deadly Chambers Demo with logcat up to see what the problem is and email me with any information that can help me fix it.
-- Kostya Vasilev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com --

3. mp3 files <=0.34 secs not playing on Droid X using MediaPlayer

4. Could a Galaxy S owner give me a hand and test a free app for me?

5. Android.mk and chmod

6. Android and Junit reports Test run failed: No test results

7. Desire atau Galaxy S?