how to find simcard is change or not in android device? -


in project require checking simcard change or not in android.

i referring many question in stack overflow , many blog not getting proper way.

i want simple task follows.

when simcard change time print message. 

problem.

  1. some of android device cdma , gsm. cdma?

  2. gsm id unique checking simcard change or not?

  3. when check simcard change because of phone have require off phone remove battery , change simcard , of phone have direct change simcard out removing phone means phone have simcard slot.

give me guideline.

there 1 suggestion :-

on application launch (first time) save/store unique number of sim(subscriber id).

on every phone bootup again fetch unique number of sim(subscriber id). , match have stored in app. if matched ok, else sim changed. below method needed subscriberid number.

imsi = m_telephonymanager.getsubscriberid(); 

Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -