如何在Android中读取双卡双待设备 [英] How to read dual sim device both sim contact in android
本文介绍了如何在Android中读取双卡双待设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
要阅读SIM卡联系人,请在URi下面使用
To read sim contact we use below URi
Uri simUri = Uri.parse("content://icc/adn/");
ContentResolver mContentResolver = this.getContentResolver();
Cursor c = mContentResolver.query(simUri, null, null, null, null);
通过使用此uri,我只能获得我的主SIM卡联系人,而不能同时获得两个SIM卡联系人,根据我的要求,我必须仅阅读SIM卡联系人.使用上面的代码,我只能读取一个SIM卡联系人.帮助我找出解决方案,该如何读取两个SIM卡联系人.预先感谢.
By using this uri i only get my master sim contact not both sim contact, according to my requirement i have to read only sim contact. using above code i only read one sim contact. help me in find out solution that how can i read both sim contact. thanks in advance.
推荐答案
我也尝试过一次.经过如此多的研究,我发现了以下链接
I also tried it once. After so many research I found the following link,
要处理两个模拟,一个需要与制造商联系.
To handle two sims, one need to contact the manufacturer.
这篇关于如何在Android中读取双卡双待设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文