error handling - Android - Crashlytics, run code during crash -


i had bad crash case caused due asyncs doing stuff in improper order in sqlite , thing blew up. took me time debug , access internal db have helped immensely. know how access internal db on dev device in case goes wrong able instance of db no matter device. error reporting using crashlytics.

the question is: there way have crashlytics run piece of code (method, etc) during crash collection/reporting? (for example, db copy , email it, or something)

couldn't find in documentation.

it possible control prior crashlytics logging crash. have create own uncaught exception handler , call crashlytics' handler there. in application class:

private uncaughtexceptionhandler originaluncaughthandler;  @override public void oncreate() {     // initialize fabric crashlytics      originaluncaughthandler = thread.getdefaultuncaughtexceptionhandler();     thread.setdefaultuncaughtexceptionhandler(this);      // rest of oncreate stuff }  @override public void uncaughtexception(thread thread, throwable ex) {     // work add data crashlytics log      originaluncaughthandler.uncaughtexception(thread, ex); } 

Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -