我总是收到这个错误: 12-15 09:46:48.434: E/TelephonyManager(5127):getDefaultSim is sim1
当我调用时:
TelephonyManager mTelephonyMgr = (TelephonyManager) this.getSystemService(Context.TELEPHONY_SERVICE);
if( mTelephonyMgr != null && mTelephonyMgr.getDeviceId() != null )
deviceImei = mTelephonyMgr.getDeviceId();
if (mTelephonyMgr != null && mTelephonyMgr.getSimState() == TelephonyManager.SIM_STATE_READY)
country = mTelephonyMgr.getSimCountryIso();发布于 2012-12-15 17:14:50
有三个不同的类别...
1) Features supported and documented
2) Features available and un-documented
3) Features unavailable因此,双sim功能是可用的,但没有文档记录,因此没有得到官方支持。
话虽如此,这并不意味着它将不能使用,它只是意味着android(或者谷歌甚至是manufaturer)不会支持你的应用程序的功能。
但它可能只是工作,例如。联系人也是类似的东西。
然后,您可能会问,如果没有文档记录,每个人如何知道这些功能。嘿,android是开源的..去看看代码,自己去找吧。我猜这就是多sim开发人员所做的。
https://stackoverflow.com/questions/13890878
复制相似问题