(In the development of Android, sometimes we want to obtain some hardware information of the phone, such as the total memory and available memory size of the Android phone. How to realize this? The total amount of mobile phone memory can be obtained by reading the information in the file "/proc/meminfo", while the available amount of memory can be obtained by using the ActivityManager. getMemoryInfo (ActivityManager. MemoryInfo) method.)