Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ActivityManager.MemoryInfo memInfo = new ActivityManager.MemoryInfo();
- ActivityManager activityManager = (ActivityManager) getActivity().getSystemService(Context.ACTIVITY_SERVICE);
- activityManager.getMemoryInfo(memInfo);
- String TotalRam = String.valueOf(memInfo.totalMem);
- int totaLram = Integer.parseInt(TotalRam);
- String freeRam = String.valueOf(memInfo.availMem);
- int freRAm = Integer.parseInt(freeRam);
Add Comment
Please, Sign In to add comment