Christmas is coming!

To celebrate the new year and thank for the support from all our dear customers, Christmas promotional activity is being held in JavaCardOS online store.

During the event, you can enjoy many promotional activities - High Discount on JavaCardOS products,Lucky Draw,Double forum Points.

Come to choose your own Christmas gift and try your luck now!

SIM card on Android System


Moderator: UNKNwYSHSA

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

SIM card on Android System

Postby nearsunshine » Sun Jan 22, 2017 5:54 am

There is one post in StackOverflow: ... -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
Posts: 628
Joined: Thu May 21, 2015 4:05 am
Points: 2971

Re: SIM card on Android System

Postby 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
Posts: 217
Joined: Mon May 18, 2015 3:09 am
Points: 1477

Re: SIM card on Android System

Postby mabel » Mon Jan 23, 2017 3:34 am

Return to “Communication”

Who is online

Users browsing this forum: No registered users and 1 guest

JavaCard OS : Disclaimer