smartcard - Access the SIM Card with an Android Application? -
i wonder if it's possible access sim card android application
you can imei (but want ?), exemple :
mtelephonymgr = (telephonymanager)getsystemservice(context.telephony_service); string imei = mtelephonymgr.getdeviceid();
likewise, have
string getsimcountryiso():
returns iso country code equivalent sim provider's country code.
string getsimoperator():
returns mcc+mnc (mobile country code + mobile network code) of provider of sim.
string getsimoperatorname():
returns service provider name (spn).
string getsimserialnumber():
returns serial number of sim, if applicable.
int getsimstate():
returns constant indicating state of device sim card.
string getsubscriberid():
returns unique subscriber id, example, imsi gsm phone.
for more, take @ this page
and don't forget add correct permission in manifest (getdeviceid() => requires permission: read_phone_state
)
Comments
Post a Comment