How to get Owner/sim number and Network Mode

后端 未结 4 1736
野的像风
野的像风 2021-01-15 17:01

I want to get the SIM number which currently in the phone i.e. owner number. and network mode whether it is GSM or CDMA.

I search on net and try to do this by getLin

4条回答
  •  感动是毒
    2021-01-15 17:51

    To get the phone number, try the TelephonyManager.

    If that does not work you can get this info through AccountManager. One of the accounts will be the number.

    See source details implementation on this post: TelephonyManager.getLine1Number() failing?

提交回复
热议问题