获取手机设备型号,厂商,手机版本,IMEI等信息
2015-08-14 14:43
676 查看
获取手机设备型号,厂商,手机版本,IMEI等信息
import android.content.Context; import android.telephony.TelephonyManager; public class StaticStatus { /** * The device's OS version. */ public static String ANDROID_VERSION = null; /** * The device's model name. */ public static String PHONE_MODEL = null; /** * The device's model manufacturer name. */ public static String PHONE_MANUFACTURER = null; /** * The device's IMEI. */ public static String PHONE_IMEI = null; public static String getDeviceVersion(){ StaticStatus.ANDROID_VERSION = android.os.Build.VERSION.RELEASE; return StaticStatus.ANDROID_VERSION; } public static String getDeviceModel(){ StaticStatus.PHONE_MODEL = android.os.Build.MODEL; return StaticStatus.PHONE_MODEL; } public static String getDeviceManufacture(){ StaticStatus.PHONE_MANUFACTURER = android.os.Build.MANUFACTURER; return StaticStatus.PHONE_MANUFACTURER; } public static String getDeviceIMEI(Context context){ TelephonyManager telephonyManager= (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE); StaticStatus.PHONE_IMEI = telephonyManager.getDeviceId(); return StaticStatus.PHONE_IMEI; } }
相关文章推荐
- Android之获取手机上的图片和视频缩略图thumbnails
- android wifi 无线调试
- 手机4大隐藏功能及使用必知常识第1/2页
- php实现用手机关闭计算机(电脑)的方法
- js判断手机和pc端选择不同执行事件的方法
- JS判断客户端是手机还是PC的2个代码
- android获取手机唯一标识的方法
- 让手机访问WAP网站服务器 IIS WAP服务器的MIME类型设置
- 手机短信轰炸(图)
- android检查手机和无线是否连接的方法
- Android获取手机通讯录、sim卡联系人及调用拨号界面方法
- Android中获得手机屏幕大小实现代码
- Android手机获取IP地址的两种方法
- android开发教程之判断是手机还是平板的方法
- Android实现判断手机未接来电及处理方法
- android开发中获取手机分辨率大小的方法
- 手机中点击网页链接实现拨号或保存电话功能实现代码
- PHP中通过HTTP_USER_AGENT判断是否为手机移动终端的函数代码
- JS+CSS实现仿触屏手机拨号盘界面及功能模拟完整实例