本文介绍了平板电脑的Andr​​oid IMEI号码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 在我的应用程序必须得到设备的唯一号码,我使用 TelephonyManager 。我能够获得 IMEI 或设备ID Android手机,但有可能为Android平板电脑(Xoom的)到获得唯一编号?我用这code得到IMEI号码,但我不能够在平板搞定,在此输入code TelephonyManager telephonyManager1 =(TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE);IMEI = telephonyManager1.getDeviceId(); 解决方案 我觉得对IMEI的唯一3G平板电脑。尝试使用, ANDROID_ID 更具体地,Settings.Secure.ANDROID_ID。这是产生并且当存储在该设备第一次启动一个64位的数量。当该装置被擦净它复位。 ANDROID_ID似乎是唯一的设备标识符一个不错的选择。也有缺点:首先,它是不是100%可靠在Android 2.2之前(即Froyo)的排放。此外,出现了至少有一个被广泛观测到的错误在一个受欢迎的手机主要制造商,在那里每一个实例具有相同的ANDROID_ID。看这里 In my application i have to get unique number of device for that i am using TelephonyManager.I am able to get imei or device id in android phones but Is is possible for android tablet (Xoom) to get unique number ?I am using this code to get imei number but i am not able to get in tablet, enter code hereTelephonyManager telephonyManager1 = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);imei = telephonyManager1.getDeviceId(); 解决方案 I think IMEIs on 3G tablets only. Try to use,ANDROID_IDMore specifically, Settings.Secure.ANDROID_ID. This is a 64-bit quantity that is generated and stored when the device first boots. It is reset when the device is wiped.ANDROID_ID seems a good choice for a unique device identifier. There are downsides: First, it is not 100% reliable on releases of Android prior to 2.2 ("Froyo"). Also, there has been at least one widely-observed bug in a popular handset from a major manufacturer, where every instance has the same ANDROID_ID.Look at Here 这篇关于平板电脑的Andr​​oid IMEI号码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-20 14:30