I use an AlarmManager
to start a service. When i set up the AlarmManager
i use the PendingIntent
and use a unique requestCode which is equal to a id row in my database.
PendingIntent pendingIntent = PendingIntent.getBroadcast(SettingsActivity.this,
lecture.getId(), myIntent, 0);
How can I retrieve that id in my service when it starts? I basically need only the requestCode parameter. I want to use that id to retrieve data from my database and show it in a notification. I have implemented all the stuff, I just need that requestCode. Is it possible to get it?
Thanks