//获取主activity
var CallLog = plus.android.importClass("android.provider.CallLog");
var main = plus.android.runtimeMainActivity();
var obj = main.getContentResolver();
//查询
obj.query(CallLog.Calls.CONTENT_URI, null, null, null, null);
查询的时候报“Uncaught TypeError: Object #<h> has no method 'query' at commontel/commontel_index.html:34”的错误?有谁知道这里是哪里错了?求指点!
堪培拉的风 (作者)
非常感谢,我试试!
2015-02-10 09:18
y***@163.com
报错啊: Uncaught java.lang.SecurityException: Permission Denial: reading com.android.providers.contacts.CallLogProvider uri content://call_log/calls from pid=3479, uid=10174 requires android.permission.READ_CALL_LOG, or grantUriPermission();at android.app.ContextImpl$ApplicationContentResolver.query at HTML/unit/test2.html:1
2017-07-17 10:50
剑锋
回复 y***@163.com: 你要,我也 报这个提示,有解决方法么?谢谢
2019-08-04 23:48