Current scenario stands like this:
- User opens my app
- Background audio agent starts playing
- User goes back to start screen
- Audio keeps playing from the background audio agent
- User kills the application from the "task bar" (the closing button in upper right corner)
- Background audio agent keeps playing.
I need to achieve following:
- Close the audio background agent when the user kills the application (I know that I can use the close method on the backgroundaudioplayer but I need to call this when the application is killed/exited).
Questions:
- Is there any event besides: Application_Deactivated / Application_Closing when the user truly exits/kills the application?
- If there is no event like mentioned above - can I tell from Application_Deactivated / Application_Closing when the user really exits/kills the application?
Thank you