How to get the number of alarms in Android phone?

后端 未结 1 1757
一个人的身影
一个人的身影 2020-12-22 10:43

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/AlarmCloc         


        
相关标签:
1条回答
  • 2020-12-22 11:44

    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.

    0 讨论(0)
提交回复
热议问题