JavacardOS will not accept order any more, please contact our partner Feitian online Store:
https://ftsafe.en.alibaba.com/index.html

SIM card on Android System

Communication

Moderator: UNKNwYSHSA

nearsunshine
Posts: 8
Joined: Wed Aug 12, 2015 6:27 am
Points :21
Contact:

SIM card on Android System

Post by nearsunshine » Sun Jan 22, 2017 5:54 am

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!

User avatar
UNKNwYSHSA
Posts: 630
Joined: Thu May 21, 2015 4:05 am
Points :3055
Contact:

Re: SIM card on Android System

Post by UNKNwYSHSA » Sun Jan 22, 2017 9:58 pm

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.
sense and simplicity

User avatar
mabel
Posts: 237
Joined: Mon May 18, 2015 3:09 am
Points :1705
Contact:

Re: SIM card on Android System

Post by mabel » Mon Jan 23, 2017 3:34 am


zxt12300
Posts: 7
Joined: Thu Dec 20, 2018 5:23 am
Points :130
Contact:

Re: SIM card on Android System

Post by zxt12300 » Thu Dec 20, 2018 11:09 pm

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.

TyraNoah
Posts: 1
Joined: Thu May 20, 2021 7:56 am
Points :352
Contact:

Re: SIM card on Android System

Post by TyraNoah » Thu May 20, 2021 7:59 am

nearsunshine wrote:
Sun Jan 22, 2017 5:54 am
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!
Can one go some steps further that the specific sim card is used or is set to function this way?

Post Reply Previous topicNext topic

Who is online

Users browsing this forum: No registered users and 15 guests

JavaCard OS : Disclaimer