Skip to content Skip to sidebar Skip to footer

How To Get The Number Of Alarms In Android Phone?

I am trying to use the following code to get the number of alarms currently set on the phone. Uri uri = Uri.parse('content://com.android.deskclock/AlarmClock'); Cursor c = getAppli

Solution 1:

The Uri you're looking for is content://com.android.deskclock/alarms, but you can't access the app's ContentProvider because it isn't exported. You'll just throw a SecurityException.


Post a Comment for "How To Get The Number Of Alarms In Android Phone?"