- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我想通过 getDeviceId() 函数获取 Shield 平板电脑中的 IMEI(国际移动设备识别码)。该程序适用于其他智能手机和平板电脑,但我在 Shield 平板电脑(nVIDIA Shield 8 英寸平板电脑)中遇到问题。Manifest 中的权限和 Android>=6 是有序的,您可以在下面找到这部分程序:
TelephonyManager tManager = (TelephonyManager)this.getSystemService(Context.TELEPHONY_SERVICE);
IMEI = tManager.getDeviceId();
结果为空,请帮帮我。
最佳答案
引用 the documentation , getDeviceId()
:
Returns the unique device ID, for example, the IMEI for GSM and the MEID or ESN for CDMA phones. Return null if device ID is not available.
(强调)
这不是这台设备独有的。我希望大多数缺少 GSM 或 CDMA 芯片的设备为 getDeviceId()
返回 null
。
关于android - Shield 平板电脑中的 IMEI 在 Android Studio 上不可用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42582888/
我的应用程序中有两个 Activity 。第一个 Activity 启动模式是 singleInstance,第二个 Activity 启动模式是 singleTask。我正在使用这些启动模式,因为我
据热心网友投稿,小米小爱触屏音箱Pro 8外观曝光,可以看到触控屏幕尺寸比较大,像是在音箱上“长”了一个平板。 从曝光的信息来看,小米小爱触屏音箱Pro 8具有白色的配色设计,下方有一个长
我有一张 table ,看起来像, VisitorId date deviceType 1 2018-12-11 mobile 2
今天下午,小米官方公布了小爱触屏音箱Pro 8,可以看到触控屏幕尺寸比较大,音箱上“长”了一个平板。据悉,小米小爱触屏音箱Pro 8具有白色的配色设计,下方有一个长条状的扬声器,上方带有一个尺寸比较
有没有办法检测是否使用手持浏览器(iOS/Android 手机/平板电脑)? 我尝试这样做的目的是让手持设备上的浏览器中的元素宽度减半,但这并没有什么不同。 width: 600px; @media
目前,Google Analytics for web 公开了一个设备类别字段,其离散值为mobile、tablet 和desktop。该界面还允许您更深入地了解它的具体设备。我想 Google 有某
我是一名优秀的程序员,十分优秀!