时钟报警我想用下面的代码我怎样才能在android系统
Uri uri = Uri.parse("content://com.android.deskclock/AlarmClock");
Cursor c = mContext.getContentResolver().query(uri, null, null, null,null);
if (c != null) {
String names[] = c.getColumnNames();
for (String temp : names) {
System.out.println(temp);
}
if (c.moveToFirst()) {
do {
int i = 0;
for (int j = 0; j < c.getColumnCount(); j++) {
}
} while (c.moveToNext());
}
}
IAM收到以下异常
java.lang.SecurityException: Permission Denial: opening provider
com.android.deskclock.AlarmProvider from ProcessRecord{4162b268
12999:com.genie9.gcloudbackup/10059} (pid=12999, uid=10059) that is not exported from uid 10011
确实让移动IAM的时钟应用的闹钟任何人都知道我必须在这里使用什么权限?我已经搜索了很多,但没有找到任何有用的,感谢帮助
嗨给出清单中添加的权限,我对着你发现任何相同issue.Have解? – 2013-02-07 06:08:45