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. ParserConfigurationException:

Hi all

I have the following java source in my program:

HttpResponse response = oslcClient.httpGet(repository,
InputStream in = response.getEntity().getContent();

DocumentBuilderFactory doFactory =
load-external-dtd", false);

InputSource source = new InputSource(in);
DocumentBuilder builder = doFactory.newDocumentBuilder();

this.document = builder.parse(source);

When I now call this URL (repository) '
rootservices' with the following content type (getContentType())
'application/rdf+xml' it works fine.
But when I call it again with this URL (repository) '
jazz/oslc/workitems/catalog' and the the following content type
(getContentType()) 'application/x-oslc-disc-service-provider-catalog
+xml' I receive the following exception:

Does someone has an idea to solve this issue?

Thanks a lot


2. Looking for game developer


My name is Igor and I'm from Russia. I found that there is no good
RPGs on this platphorm. So I want to create team to develop game. I
have good friend, he's roleplaying fan and writes atmosphere modules
(adventures) for his sessions. And he has ideas for computer (mobile)
RPG. As soon as on the market only 2-3 RPGs this could be idea to
create one and earn some money.

Feel free to ask any question.

Igor Krasnodymov.


3. PopupWindow Does not show

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

5. Entry untuk Smart Handheld Liquid Competition

6. Playing a video in VideoView in Android

7. Porting an existing Linux device driver to the Android platform