Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

android check free space programmatically

//gets available ram space during runtime
ActivityManager actManager = (ActivityManager) getSystemService(ACTIVITY_SERVICE);
MemoryInfo memInfo = new ActivityManager.MemoryInfo();
actManager.getMemoryInfo(memInfo);
long totalMemory = memInfo.totalMem;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #android #check #free #space #programmatically
ADD COMMENT
Topic
Name
2+4 =