获取设备的配置信息
来源:互联网 发布:淘宝店详情图片尺寸 编辑:程序博客网 时间:2024/05/17 23:34
public String getDeviceConfig(){Configuration configuration = getResources().getConfiguration();float fontScale = configuration.fontScale;//当前用户设置的字体的缩放因子int keyboard = configuration.keyboard;//当前设备的键盘类型int keyboardHidden = configuration.keyboardHidden;//键盘是否可用Locale locale = configuration.locale;//获得设备当前所在的地点int mcc = configuration.mcc;//获取移动信号的国家码int mnc = configuration.mnc;//获取移动信号的网络码int navigation = configuration.navigation;//获取设备的导航设备的类型int orientation = configuration.orientation;//获取屏幕的方向,横竖屏等int touchscreen = configuration.touchscreen;//触屏方式int densityDpi = configuration.densityDpi;//int screenHeightDp = configuration.screenHeightDp;int screenWidthDp = configuration.screenWidthDp;int screenLayout = configuration.screenLayout;return "";}
0 0
- 获取设备的配置信息
- 如何获取PCI设备的配置和位置信息!
- NET_DVR_GetDVRConfig 获取设备配置信息的两种方式
- 获取USB设备的信息
- 获取设备的部分信息
- IOS 获取设备的信息
- 获取iphone的设备信息
- iOS设备信息的获取
- 获取iOS设备的信息
- 获取手机设备的信息
- 获取手机设备的信息。
- 如何获取iPhone设备的设备信息
- android 获取设备Configuration配置信息
- android 获取设备Configuration配置信息
- iOS-获取当前设备的信息,网络状态,运营商,设备震动.获取设备信息
- J2ME-->获取设备支持的信息
- 【Android】获取设备的基本服务信息
- iphone中获取设备的相关信息
- linux 删除文件里的标点符号
- iOS OC10_Block
- 有关复合的学习
- JAVA学习第十一天
- IOS-1-Objective-C-@property属性的使用及注意问题:@property(assign)int name;
- 获取设备的配置信息
- oracle字符集转换
- PHP Cookies
- HDUOJ 进制转换 题目2031
- HDU 1203 I NEED A OFFER! 最大概率
- 【FFmpeg】ffplay播放rtsp视频流花屏问题
- Eclipse — 每次启动都会Error when loading the SDK
- iOS中单例的线程安全
- repo新的下载地址