Hey guys can anyone help me translate this to using the reflection library?
It gets the current list of alarms that all apps set in android. There's examples on how to set an alarm yourself with StartServiceAt() but I was curious what other alarms other apps have set up on my phone, but are not visible anywhere.
B4X:
Uri uri = Uri.parse("content://com.android.alarmclock/alarm")
Cursor c = getContentResolver().query(uri, null, null, null, null);
Log.i(tag_alram, "no of records are" + c.getCount());
Log.i(tag_alram, "no of columns are" + c.getColumnCount());
if (c != null) {
String names[] = c.getColumnNames();
for (String temp : names) {
System.out.println(temp);
}
if (c.moveToFirst()) {
do {
int i = 0;
// Log.i(tag_alram,
// c.getString(c.getColumnIndex(names[i])));
for (int j = 0; j < c.getColumnCount(); j++) {
Log.i(tag_alram, c.getColumnName(j)
+ " which has value " + c.getString(j));
}
} while (c.moveToNext());
}
It gets the current list of alarms that all apps set in android. There's examples on how to set an alarm yourself with StartServiceAt() but I was curious what other alarms other apps have set up on my phone, but are not visible anywhere.