private String getMemoryInfo() {
Runtime rt = Runtime.getRuntime();
long total = rt.totalMemory();
long free = rt.freeMemory();
long use = total - free;
return "USE=" + use + ", FREE=" + free + ", TOTAL=" + total;
}
Runtime rt = Runtime.getRuntime();
long total = rt.totalMemory();
long free = rt.freeMemory();
long use = total - free;
return "USE=" + use + ", FREE=" + free + ", TOTAL=" + total;
}