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. ParserConfigurationException: http://apache.org/xml/features/nonvalidating/load-external-dtd

Hi all

I have the following java source in my program:

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

DocumentBuilderFactory doFactory =
DocumentBuilderFactory.newInstance();
doFactory.setNamespaceAware(true);
doFactory.setValidating(false);
doFactory.setFeature("http://apache.org/xml/features/nonvalidating/
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) 'https://jazz.net/jazz/
rootservices' with the following content type (getContentType())
'application/rdf+xml' it works fine.
But when I call it again with this URL (repository) 'https://jazz.net/
jazz/oslc/workitems/catalog' and the the following content type
(getContentType()) 'application/x-oslc-disc-service-provider-catalog
+xml' I receive the following exception:
javax.xml.parsers.ParserConfigurationException:
http://apache.org/xml/features/nonvalidating/load-external-dtd
        
org.apache.harmony.xml.parsers.DocumentBuilderFactoryImpl.setFeature(DocumentBuilderFactoryImpl.java:
101)

Does someone has an idea to solve this issue?

Thanks a lot
Pasithee

-- 

2. Looking for game developer

Hello,

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.

Sincerely,
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