我是华为的手机测试。通过
var contact = addressbook.create();
contact.name = {givenName:dc.name};
contact.phoneNumbers = [{type:"mobile",value:dc.phone,preferred:true}];
contact.save();
存上号码之后 ,可以用接口 addressbook.find 出来,但是 手机上的联系人 却一个都没有 是什么原因?
我用json 查看了, 联系人读出来的数据结构一模一样。但是就是手机上的联系人 却一个都没有!
{"data":[{"id":155,"rawId":null,"target":0,"displayName":"记你","name":null,"nickname":null,"phoneNumbers":[{"type":"mobile","value":"13113256458","id":"312","pref":false}],"emails":null,"addresses":null,"ims":null,"organizations":null,"birthday":null,"note":null,"photos":null,"categories":null,"urls":null},{"id":156,"rawId":null,"target":0,"displayName":"张伟","name":null,"nickname":null,"phoneNumbers":[{"type":"mobile","value":"13113256487","id":"314","pref":false}],"emails":null,"addresses":null,"ims":null,"organizations":null,"birthday":null,"note":null,"photos":null,"categories":null,"urls":null},{"id":157,"rawId":null,"target":0,"displayName":"彭先生","name":null,"nickname":null,"phoneNumbers":[{"type":"mobile","value":"11127788052","id":"316","pref":false}],"emails":null,"addresses":null,"ims":null,"organizations":null,"birthday":null,"note":null,"photos":null,"categories":null,"urls":null}]}
2 个回复
Android_磊子
我们查一下吧,后期你联系下我qq609029981。
别闹我有枪
我是华为的手机测试。通过
存上号码之后 ,可以用接口 addressbook.find 出来,但是 手机上的联系人 却一个都没有 是什么原因?
我用json 查看了, 联系人读出来的数据结构一模一样。但是就是手机上的联系人 却一个都没有!