android.os.Build
来源:互联网 发布:p2p网络信贷的弊端 编辑:程序博客网 时间:2024/05/18 15:51
一、android.os.Build设备常量以及imsi号与ip地址的获得
android.os.Build.MODEL :设备名
android.os.Build.BRAND: 设备厂商
android.os.Build.VERSION.SDK:sdk版本号
一般用于版本兼容的检测或者其他功能
比如说coolpad 9930手机2.2的android系统
择MODEL为9930,BRAND为coolpad,sdk为8
imsi号获得
(TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE).getSubscriberId();
获取ip地址
WifiManager wifiManager = (WifiManager) getSystemService(WIFI_SERVICE); WifiInfo wifiInfo = wifiManager.getConnectionInfo(); int ipAddress = wifiInfo.getIpAddress(); String ip = intToIp(ipAddress); public String intToIp(int i) { return ((i >> 24 ) & 0xFF ) + "." + ((i >> 16 ) & 0xFF) + "." + ((i >> 8 ) & 0xFF) + "." + ( i & 0xFF) ; }
- android.os.Build
- android.os.Build认识
- API--android.os.Build
- Android.os.Build
- android.os.Build
- android.os.Build
- Android之android.os.Build
- android.os.Build 信息类
- android.os.Build代码翻译
- 修改android.os.Build.MANUFACTURER
- android.os.Build 常用常量
- android.os.Build的一些使用方法
- android.os.Build常用硬件属性常量
- android.os.build.clsass and class VERSION
- android.os.Build类字段含义
- android.os.Build的一些使用方法
- build android os ubuntu Setting up a Linux build environment
- android手机状态解释,比如android.os.Build.VERSION.SDK
- CMake
- HTML5 video
- 公用免费WiFi受热捧 用户谨防落入钓鱼陷阱
- 七夕在相爱人的眼中也是普通的一天 。
- c++ 水仙花数
- android.os.Build
- 基于VS2008的Wireshark开发环境的搭建
- 12个有趣的C语言面试题
- jQuery线状图插件Sparkline
- Google Maps API Key申请方法及地址(谷歌地图使用时的Key申请)
- 以面向对象方式编写一个计算电话费的程序
- 程序员技术练级攻略
- 如何混淆Android项目代码(ProGuard)防止反编译
- 在路上