I have developed an application in some devices, if my application is running "out of memory" then the app is crashing and It is saying that "Unfortunately the work has stopped working".
Whenever my application exits the memory instead of crashing the application, then I want to show a dialog.
I am clear:
When my app comes out of memory, then I show an interaction with the app by saying "Oops! An unexpected error has occurred, please try again later" Want to App should not crash.
Talk about you "Out of memory accident", an exception is caused by many things What you can do, they should do and not do so.
Ideally, you should never come out in normal circumstances. Instead, you should try to avoid memory management in your app. See for more information.
In addition to this, if you really want to know how to do it, then you can identify your potential memory leaks and catch them by holding try-catch
The best solution is to recognize your leaks and try to avoid them from within your app.
No comments:
Post a Comment