imsi号是什么,通常是几位?

Casey晨小曦 2015-02-03 09:44:54
imsi号什么,通常是几位,如果通过
TelephonyManager manager = (TelephonyManager) activity.getSystemService(Context.TELEPHONY_SERVICE);
String subscriberId = manager.getSubscriberId() == null ? "" : manager.getSubscriberId();
方法获取的imsi号是16位,又是什么意思?
...全文
1365 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
  • 打赏
  • 举报
回复
一般是15位 以下摘自http://www.cnblogs.com/tyjsjl/p/3585051.html String imei =((TelephonyManager) context.getSystemService(TELEPHONY_SERVICE)).getDeviceId(); String IMEI =android.os.SystemProperties.get(android.telephony.TelephonyProperties.PROPERTY_IMEI) 不过纯APP开发SystemProperties,TelephonyProperties汇报错误,因为android.os.SystemProperties在SDK的库中是没有的,需要把Android SDK 目录下data下的layoutlib.jar文件加到当前工程的附加库路径中,就可以Import。 如果Android Pad没有IMEI,用此方法获取设备ANDROID_ID: String android_id = Secure.getString(this.getContentResolver(),Secure.ANDROID_ID);
开发者_android 2015-02-03
  • 打赏
  • 举报
回复
引用 1 楼 jsyzgygcj 的回复:
一般是15位 以下摘自http://www.cnblogs.com/tyjsjl/p/3585051.html String imei =((TelephonyManager) context.getSystemService(TELEPHONY_SERVICE)).getDeviceId(); String IMEI =android.os.SystemProperties.get(android.telephony.TelephonyProperties.PROPERTY_IMEI) 不过纯APP开发SystemProperties,TelephonyProperties汇报错误,因为android.os.SystemProperties在SDK的库中是没有的,需要把Android SDK 目录下data下的layoutlib.jar文件加到当前工程的附加库路径中,就可以Import。 如果Android Pad没有IMEI,用此方法获取设备ANDROID_ID: String android_id = Secure.getString(this.getContentResolver(),Secure.ANDROID_ID);
正确~

80,354

社区成员

发帖
与我相关
我的任务
社区描述
移动平台 Android
androidandroid-studioandroidx 技术论坛(原bbs)
社区管理员
  • Android
  • yechaoa
  • 失落夏天
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧