How can i hide the error window that says app has stopped etc..? Or is there any xposed module that can do this?
Asked
Active
Viewed 889 times
-2
-
I'm not getting your point. Error window occurs when your app crashes. Try to find the origin of the crash using Android Monitor Log. – Ajith Pandian Sep 16 '16 at 20:52
-
im not looking for a fix. i just want the app to crash silently if an error occurs. how to hide the window? i dont want to get notified, it's annoying. – halim mars Sep 16 '16 at 21:06
-
it's like the warning window that appears when increasing volume and crossing the limit. there's an xposed module which hides it – halim mars Sep 16 '16 at 21:12
-
Um.... Learn what a try/catch is? – Chad Bingham Sep 16 '16 at 21:12
1 Answers
0
I do NOT recommend anyone do this, but you could put all of your code within a try block, and upon catching an error close the app. For example:
try
{
//all your code
}
catch(Exception ex)
{
finish();
}

Luke Needham
- 3,373
- 1
- 24
- 41