i want to get the alarm in the Clock Application in the mobile iam using the following code
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 getting the following Exception
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
does any one knows what is the permission that i have to use here? i have searched alot and couldn't find anything usefull, thanks for helping