如何找到移动没有和imei没有使用android应用程序和显示在应用程序

问题描述:

>如何找到移动没有和imei没有使用android应用程序。如何找到移动没有和imei没有使用android应用程序和显示在应用程序


我正在开发移动运营商的应用程序。首先我想找到任何东西(IMSI,ICCID,IMEI,MSISDN)。

现在作为一种解决方法,我会要求用户注册他的电话号码与我的应用程序。但是,如果用户更改SIM卡,那么又会有不好的事情发生。

你可以试试这个:

TelephonyManager telephonyManager = ((TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE)); 

String imeiSIM1 = telephonyManager.getDeviceId();; 

Refer this For More Clear Information

希望能帮助

+0

这对我非常有用非常感谢你.. – debid

+0

爱总是帮助:) – nitesh

使用以下用于获取手机号码及IMEI号码

TelephonyManager tm = (TelephonyManager)Your_Context getSystemService(Context.TELEPHONY_SERVICE); 
// get IMEI 
String imei = tm.getDeviceId(); 
String phone = tm.getLine1Number(); 

但它并不总是如非手机设备可靠。您还需要添加批准"android.permission.READ_PHONE_STATE"

+0

我是新与Android应用.. \t \t 这是非常有用的,我谢谢非常多.. – debid

+0

很高兴帮助你:-)。 – Andrain

+0

如何我可以投票任何问题stackoverflow.com – debid