I am using Huawei Mate 10 with 8.0 OS. The problem I'm facing is it doesn't show any kind of app crashing dialog. When any run time error occurs, Activity closes automatically without showing any crash dialog in this situation all the crash logs are removed in my Android studio Logcat and I'm not able to catch the error. Is there any way to hold crash dialog because ANR dialog does not clear the logcat till i close dialog. Thankyou...
Asked
Active
Viewed 1,094 times
0
-
Debug your app. https://developer.android.com/studio/debug/ – Naveen Oct 08 '18 at 10:45
-
this will help you **[Unfortunately MyApp has stopped. How can I solve this?](https://stackoverflow.com/questions/23353173/unfortunately-myapp-has-stopped-how-can-i-solve-this)** – AskNilesh Oct 08 '18 at 10:45
-
When debugger is not attached to android device. Here I want Crash dialogue, where I can also report the crash. – Muhammad Kashif Oct 08 '18 at 10:49
-
Use Fabric crash report library or any other crash report library. you will get email whenever your app will crash – Muhammad Hassaan Oct 08 '18 at 11:03
-
run app in debug mode and create a breakpoints on create method or first entry of code. – Chetan Ansel Oct 08 '18 at 11:50
1 Answers
1
in this situation all the crash logs are removed in my Android studio Logcat and I'm not able to catch the error
It's annoying behaviour but they are not actually removed, only hidden. To see them after the crash, set Show only selected application on the Logcat panel to No filters and set Verbose dropdown to Error to easily find the correct logs

Nick Cardoso
- 20,807
- 14
- 73
- 124