我做了一个从vcf file获取联系人并保存到安卓设备的安卓应用程序,代码是:
String tmptype = mime.getMimeTypeFromExtension("vcf");
final File file = new File(Environment.getExternalStorageDirectory().toString() + "/contacts.vcf");
Intent i = new Intent();
i.setDataAndType(Uri.fromFile(file), "text/x-vcard");
st
我正在开发一个从手机上读取联系人的安卓应用程序( phonegap ),它在安卓5和更高版本上工作得很好,但当涉及到安卓4操作系统时,它无法从手机上读取联系人,所以我想问一下,是否有人在phonegap中使用contacts.find时遇到过这个问题。
document.addEventListener("deviceready", onDeviceReady, true); //the onDeviceReady function takes place when the app starts
function onDeviceReady() {
// find all