I am doing an app of video streaming, and I have to detect when it goes to background to stop the video or not. I can detect when the app goes to background automatically when a system dialog appears(eg.: battery low) by checking the properties of a CApaWindowGroupName object; in this case, as the dialog will return soon, I do not stop the video.
But when the dialog is an alarm, I should stop the video as this dialog is to be shown longer. But checking the CApaWindowGroupName object is useless in this case; the UID is the same for both dialogs.
Is there any way to detect when the dialog is an alarm or not?
Thanks in advance,