android获取手机信息
1.获取手机安装的应用信息(排除系统自带):
Java代码[code]private String getAllApp() {
String result = "";
List
by 三里屯摇滚 - 移动操作系统 - 2011-12-28 11:02:00 阅读(2028) 回复(1)
获取android源码 最近google的源代码地址被墙了,表现为 未预期的符号 `newline' 附近有语法错误,所以我们需要另辟战场 1. bin里的repo从这里得到http://code.google.com/p/git-repo/,也可以这样 curl http://git-repo.googlecode.com/files/repo-1.13 > repo 2. 修改repo里的https://code.google.com/p/git-repo/ 为 http://code.google.com/p/git-repo/ 3. 然后进s...
android 获取 imei号码 [code]1.android 获取 imei号码
2.
3.核心代码:
4.
5.Imei = ((TelephonyManager) getSystemService(TELEPHONY_SERVICE))
6..getDeviceId();
7.
8.1.加入权限
9.
10.在manifest.xml文件中要添加
repo init -u git://android.git.kernel.org/platform/manifest.git -b cupcake 后面的-b的cupcake是branch名字?在哪查啊?我没加-b下载的源码编译提示 Checking API: checkapi-last frameworks/base/api/3.xml:253614: error 1: required string: "implements" ****************************** You have tried to change the API from what has been previously released in an SDK. Please fix the errors listed above. **...
android 开源了,获取源代码祥见 http://source.android.com/download 我用的是Ubuntu Linux (i386),故步骤如下: The android build is routinely tested on recent versions of Ubuntu (6.06 and later), but reports of successes or failures on other distributions are welcome. To set up your Linux development environment, make sure you have the following: ...
android获取CPU序列号 [code]1./** 2. * 获取CPU序列号 3. * 4. * @return CPU序列号(16位) 5. * 读取失败为"0000000000000000" 6. */ 7.public static String getCPUSerial() { 8. String str = "", strCPU = "", cpuAddress = "0000000000000000"; 9. try { 10. //读取CPU信息 11. Process pp = Runtime.getRuntime().exec("cat /proc/cpuinfo"); 12. ...
android 源代码的获取详细过程你可以参考这里: http://source.android.com/download http://source.android.com/download/using-repo 大多数情况下,我们只关注于如何取到源代码,至于git,repo的详细命令及格式我们无需关心。我常用的linux版本是forda 7,下面是征对FC7取android source的几个简要步聚。 1、安装git http://www.kernel.org/pub/software/scm/git/RPMS/i386/ 从这里获取1.5.4或以上版本.编译安装 2、 yum inst...