Page 1 of 1
SIM card on Android System
Posted: Sun Jan 22, 2017 5:54 am
by nearsunshine
There is one post in StackOverflow:
http://stackoverflow.com/questions/4176 ... -java-card.
The guy want:
i want to open a browser with specific URL when sim card is inserted into phone.
Is that possible? Any sample code for it? Thanks!
Re: SIM card on Android System
Posted: Sun Jan 22, 2017 9:58 pm
by UNKNwYSHSA
Android provider one api:
android.telephony.getSimState().
You can create one service background, monitor the state of the sim card. When the card state turn from absent to ready, do what you want.
In accordence with usual definition of android api, there should be one listener to monitor sim card state, but i didn't find one.
Re: SIM card on Android System
Posted: Mon Jan 23, 2017 3:34 am
by mabel
Re: SIM card on Android System
Posted: Thu Dec 20, 2018 11:09 pm
by zxt12300
It's so easy. You may develope a STK applet on SIM card, when the SIM card pluged into Phone, the STK applet can send a LauchBrowser proactive command to Phone with URL.
Re: SIM card on Android System
Posted: Thu May 20, 2021 7:59 am
by TyraNoah
Can one go some steps further that the specific sim card is used or is set to function this way?