I am storing tasks in database with unique ID. And there are 4 different activities that insert and/or delete tasks from database. Now I want to set alarm for these tasks with task_id as request code in PendingIntent. The alarm set from any of the 4 activities. And when task is deleted then Can I cancel the alarm using the task_id (request code).
As I have mentioned alarm has to be set and cancel from 4 activities, I want to make set and cacek alarm as Util function so that I can avoid code duplication.