获取手机号
时间:2014-09-04 14:35:49
收藏:0
阅读:260
TelephonyManager tm = (TelephonyManager)context.getSystemService(Context.TELEPHONY_SERVICE);
String imei = tm.getDeviceId();
String tel = tm.getLine1Number();
String imsi = tm.getSubscriberId();//得到用户Id
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
原文:http://www.cnblogs.com/xubuhang/p/3955873.html
评论(0)