找回密码
 立即注册
在android开发中,有时候我们想获取手机的一些硬件信息,比如android手机的总内存和可用内存大小。这个该如何实现呢?通过读取文件”/proc/meminfo”的信息可以获取手机Memory的总量,而通过ActivityManager.getMemoryInfo(ActivityManager.MemoryInfo)方法可以获取当时的可用Memory量。

(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.)

[下载]09550366292.rar




上一篇:android_Gallery3D效果图
下一篇:ndk开发实例