Saturday 15 August 2015

android - How to get Callback when app is force stopped -


My app records audio using the API in the foreground or background (when the app is minimized), but When the audio file gets corrupted, users force the application from the application manager.

I have been able to stop the recorder and update the audio headers in other scenarios.

According to

the app Stopping will kill the whole process (ie with process. Key process (int piaides). All resources associated with the application will be deleted and will be freed by the kernel. If not, there is no way that you can block this action.

Use better in important parts of your code to detect crashes.

No comments:

Post a Comment