Get Mobile no from real device

前端 未结 3 1919
孤城傲影
孤城傲影 2021-01-05 06:50

I want to get the mobile number of a sim which is inserted into the device. I know as pr the android SDK TelephoneManger is the class by which we can get it by

3条回答
  •  青春惊慌失措
    2021-01-05 07:28

    You should look at this question and its comments.

    Some SIM cards seems to cause getLine1Number() to return null... and no one has found a way to deal with this.

    More information here

提交回复
热议问题