android - How to get Storage size of the Application -


how storage size of installed applications, programmatically, displayed on application's applicationinfo page?

you call

process process = runtime.getruntime().exec(commandline); bufferedreader bufferedreader = new bufferedreader(new inputstreamreader(process.getinputstream())); 

with commandline ls -l /data/app/*.apk or ls -l /data/app-private

and parse resulting data information need.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -