But I want to get that time from the alarmManger and display it in the application to get a better UX is there any way to get the alarm time?
Save it yourself somewhere persistent (file, database, SharedPreferences
) when you set up the event. AlarmManager
is write-only; you cannot retrieve information about scheduled events from it.