I create an application that sometimes crashes, I want to know that it crashed the next time I opened it, so I can offer the user some options after the crash. How can I detect a crash? In addition, I want to be able to save the user's work before it works, I mean the detection of real-time failures, can I do this without knowing where it crashed?
You will need to know where it crashed in order to install the blocks try/ catchin the right place, er, catchcrash and save the data or whatever you have in mind.
try
catch
"" , .
, / Java, , onDestroy, , try/catch, , , . , , .
onDestroy
ACRA. , , , .
try/catch blocks, Exception catch.
try/catch
Exception
UncaughtExceptionHandler , - -.
ACRA .
BugSnag. , , AppSee.
AppSee , . , .
Source: https://habr.com/ru/post/1608213/More articles:Declaring a function as static and external "C" - c ++How Spring Data JPA works internally - springНазначение nil элементу в NSMutableDictionary в Objective-C удаляет этот элемент, является ли это санкционированной функцией или ошибкой? - iosAngular UI-Select: how to add a tooltip for text overflow? - angularjsGet id of affected document with update () - mongodbС++ - Как хранятся многомерные векторы? - c++angularjs $state и $rootScope. $on ($ stateChangeStart) проблема - javascriptHow to overload a member function based on a pointer versus a type without a pointer - c ++How to specify the ion assembly folder in CLI - ionicWhat is C # analog of C ++ const reference return value - c ++All Articles