PackageStats data returning 0 in Android JB -


i working on custom application manager , try disk usage of installed package.

so packagemanager.getpackagesizeinfo removed sdk on 0.9->1.0 update

android.content.pm.packagestats(string pkgname)  (cachesize, codesize,  datasize) returns "0"  

has solution total disc space used installed package?

this code:

public long gettotalexternalsize(packagestats ps) {     if (ps != null) {         system.out.println("--uday-- entering inside ps! = null condition  gettotalexternalsize!!! " + ps.codesize +" " + ps.datasize                 + " " + ps.cachesize +" , packagename " + ps.packagename );         return ps.externalcodesize + ps.externaldatasize                 + ps.externalmediasize + ps.externalobbsize;     }     system.out.println("--uday-- not entering inside ps! = null condition gettotalexternalsize!!!");     return size_invalid; } 


Comments

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -