The API documentation for AlarmManager shows a cancel()
method but requires you to pass in the PendingIntent
fired by your application. However, is there a way (either using AlarmManager or something else) to delete alarms set by other applications or alarms set manually by the user in the stock Android clock application?
Am I misunderstanding how Android represents alarms? Since it's a system service my intuition tells me that all applications (with the appropriate permissions) are able to access it, or does Android only represent alarms as Java objects that exist sandboxed in each application?