我是 android 应用程序的新开发人员。当我通过带有国家代码的手机号码时,我想获得 ISO 国家代码。如果我将手机号码作为 1-319-491-6338 传递,我可以在 android 中获得美国/美国的国家 ISO 代码吗?
我编写的代码如下:
TelephonyManager tm = (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE);
String countryCode = tm.getSimCountryIso();
String mobileno="1-319-491-6338";
在这里,我在哪里可以传递手机号码?
有人可以帮我吗?
提前致谢