Page 1 of 1

On SIM changed

Posted: 20 Mar 2018 06:18
by Friend1
Hi Desmanto,

It's possible to show phone number when SIM card changed? After usage of SIM State trigger how to do this? Thanks.

Re: On SIM changed

Posted: 20 Mar 2018 16:55
by Desmanto
I can't find any built-in function in Automagic to detect the number in the SIM card. I wanna know too if there is. Maybe someone who understand java can show us how.

Usually we are the one who should supply the number to the OS, not retrieve from the SIM. But some carriers may have free service number which can be used to check various info, including the current number. Maybe can use that to check the phone number. Call the service number and retrieve the UI element from the response and parse the phone number from there.