Here is the code snippet:
getIMSI()
{
TelephonyManager telephonyMgr = (TelephonyManager)
context.getSystemService(Context.TELEPHONY_SERVICE);
telephonyMgr.getSubscriberId();
}
getIMEI()
{
TelephonyManager telephonyMgr = (TelephonyManager)
context.getSystemService(Context.TELEPHONY_SERVICE);
telephonyMgr.getDeviceId();
}
On Dec 16, 8:15 pm, par <[email protected]> wrote:
> I would like to know when IMSI or IMEI can be null.
>
> After testing airplane mode, i found IMSI is null always. But i have
> seen sometimes IMSI being null even airplane mode is not on.
>
> Thanks,
> PY
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en