I am currently developing a video chat application, it is working fine no problem at all, my issue is that the video and audio streams cut when I click on the home button and continues as I come back, this means that the other peer sees my video Container freezing, until I get the app again from the background, hoping that the system did not kill the app if the resources of the device is not enough. What I want to do is something like what I see in the Messenger application (the one related to Facebook), so when the user clicks on the home screen a dialog activity comes up containing the video or some text notifying that there is a call running, to prevent the app from stop sending video and audio streams.
UPDATE: I need to make a UI accessor for the application when it is in the background