如何获得处理器速度和内存的Andr​​oid设备 [英] How to get processor speed and RAM in android device

查看:86
本文介绍了如何获得处理器速度和内存的Andr​​oid设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以帮我如何让处理器名称,速度和Android设备的RAM通过code。

Could anyone help me how to get processor name, speed and RAM of Android device via code.

推荐答案

它只能在一个植根设备或应用程序正在运行的系统应用。

its only possible on a rooted device or your app is running as system application.

有关你要看看在运行的内核,因为我知道这个信息有用信息 不能由Android系统本身来获得。

For wanted informations you have to look in the running kernel, as i know this informations cant be obtained by the android system itself.

要获得有关CPU的信息,你可以阅读和分析这个文件: 的/ proc / cpuinfo的

To obtain informations about the CPU, you can read and parse this file: /proc/cpuinfo

要获得内存的信息,你可以阅读和分析这个文件: 的/ proc /内存

To obtain memory informations, you can read and parse this file: /proc/memory

这篇关于如何获得处理器速度和内存的Andr​​oid设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆