Do I have to declare permission "com.android.alarm.permission.SET_ALARM" when using Alarm Manager in Android?

I saw a lot of tutorials using AlarmManager, some announced com.android.alarm.permission.SET_ALARMand some not.
When should I announce this, and when will I not?
My application uses the setup Alarmto exit and run the onReceive()receiver at a specific time.

+4
source share
1 answer

You do not need to declare "com.android.alarm.permission.SET_ALARM" to use AlarmManager. This permission is required when using AlarmClock.

+2
source

All Articles