I want to retrieve default SIM language from SIM card, is this function can do it?
[COLOR="Blue"]User::Language();[/COLOR]
Thank you in advance!
Regards,
Kevin
Printable View
I want to retrieve default SIM language from SIM card, is this function can do it?
[COLOR="Blue"]User::Language();[/COLOR]
Thank you in advance!
Regards,
Kevin
User::Language(); returns the devices current language, anyway you propably should use that one since that is the language user has set on, and the SIM card is usually rather hard to get any access.
[QUOTE=schmeichel;598626]I want to retrieve default SIM language from SIM card, is this function can do it?
[COLOR="Blue"]User::Language();[/COLOR]
Thank you in advance!
Regards,
Kevin[/QUOTE]
you can use CTelephony for getting IMSI. IMSI is the SIM id number, which first three will tel you the country of origin (home network country), next two are then operator ID's in that country (home network operator) and rest are unique ID's for the card.I dont think you ca get the language of SIM directly but by knowing operator country you can guess it.
[QUOTE=sumit.rathi;598642]you can use CTelephony for getting IMSI. IMSI is the SIM id number, which first three will tel you the country of origin (home network country), next two are then operator ID's in that country (home network operator) and rest are unique ID's for the card.I dont think you ca get the language of SIM directly but by knowing operator country you can guess it.[/QUOTE]
Yes, thanks, I thought there are have an API can get the language id of SIM card directly.
There's no SIM card language per se. Every SIM card is associated with a MCC (Mobile Country Code) which with the MNC (Mobile Network Code) identifies the country and operator. Not necessarily the language (many countries have several official languages).
[url]http://en.wikipedia.org/wiki/Mobile_country_code[/url]
[url]http://en.wikipedia.org/wiki/Mobile_network_code[/url]
petrib is right, IMSI does not help you in anyway. You can check SIM Toolkit programming, if it help you in anyway.