我在我的应用程序工作,并利用该方法获取电话号码:在Android中使用Airtel提供商SIM卡时无法获得SIM卡号码?
TelephonyManager phoneManager = (TelephonyManager)appContext.getSystemService(Context.TELEPHONY_SERVICE);
number = phoneManager.getLine1Number();
它与所有的SIM卡的工作很好,但在Airtel公司提供SIM卡越来越问题。 尝试使用此SIM卡时,我变得空白。
我不知道为什么Android API与不同的提供商有不同的处理方式。请建议我。
谢谢一个很酷的概念......! – 2013-03-13 13:08:26