ITeye博客

获取手机的电话号码

bcf102 · 2012-08-06 10:18 · android · 移动开发 · Markdown

TelephonyManager tm = (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE);

String imei = tm.getDeviceId();

String tel = tm.getLine1Number();

加上权限

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。