1代码实现
获取到的就是*#06#的码,需要设置权限
public class MainActivity extends AppCompatActivity
{
public String
GetPhoneNumber(Context paramContext
)
{
TelephonyManager paramTelephonyManager
= (TelephonyManager
) paramContext
.getSystemService(Context
.TELEPHONY_SERVICE
);