에서 시계 알람 내가어떻게
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
가하는 다음과 같은 예외를 받고
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());
}
}
스피 다음 코드를 사용하여 모바일 스피에서 시계 응용 프로그램의 알람을 얻고 싶은 얻을 수 있습니다 어떤 사람이 내가 여기서 사용해야하는 허가가 무엇인지 압니까? 난 당신이 알람 클래스 see here
를 사용하여 알람을 설정할 수 있습니다 또는 당신은이 URI에 액세스 할 수 없습니다
안녕 아래에 주어진 매니페스트에 권한을 추가해야 할 것이다, 알람 시계, 알람을 설정하는 코드 아래 사용할 수 있습니다 해결책? –