I got a dialog screen that popped up when the alarm was turned on. To turn off this alarm/dialog screen user needs to enter a password. However, some users figured out a way to remove the phone’s battery and put it back on which removes the alarm dialog. I need this dialog to persist when the app opens even after the phone restarted and should be gone when the password is entered. Is there any way to do this?
I am thinking about keeping a file inside internal storage, lets call that file name as alarmmanager.txt and keep the dialog state stored inside that file to access after the phone restarted or even after app storage cleared.
Jisa Joy is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.