I am sending a request code through this to an alarm manager
Intent broadcast_intent = new Intent(this, AlarmBroadcastReceiver.class);
PendingIntent pendingIntent = PendingIntent.getBroadcast(this, rowId, broadcast_intent, PendingIntent.FLAG_UPDATE_CURRENT);
I was wondering, that in the broadcastreceiver, how can I retreive the requestcode (rowId) that I used to setup pendingIntent?
Thanks
I was searching for the same thing. One way would be to pass requestcode as extra in your Intent.
However, if the app is killed there is no way to retrieve the data passed by the Intent.
So you need to pass rowId as an URI , and use Intent Filter.