For example , I want to show a notification tomorrow at 09:00h.
I have an app with two services: ser_Crono and ser_Notif.
In the app I enter the time 09:00 and start the service ser_Crono in background in which there is a StartServiceAtExact command to boot it at 8:54 and start on foreground the ser_Notif having a Sleep to display the notification at 9:00.
If the time for the notification is short, 20 minutes, everything works, but if one hour is missing, the system kills the service and everything stops. This happens on the real Samsung device, on the virtual device there is no problem.
Sorry for my bad english.