In alarm app, user gives input String for alarm message and sets alaram.
I am able to set and listen alarm.but how to display message set by user?
have set many times to set alarm, how can i display respective message for that specific alarm
In alarm app, user gives input String for alarm message and sets alaram. I
Share
You should have an onReceive(Context context, Intent intent) function in your BroadcastReceiver. It looks something like:
In order to get that Bundle you have to pass in an intent extra when creating the alarm
I just showed an example of a Toast message, but you can change that to a Notification or AlertDialog also.
Let me know if this helps.