All Projects → xuuhaoo → Android Defensecrash

xuuhaoo / Android Defensecrash

Android runtime crash controller. defense java crash keep your application safety

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Android Defensecrash

Bugsnag React Native
Error monitoring and reporting tool for native exceptions and JS errors in React Native apps
Stars: ✭ 374 (+320.22%)
Mutual labels:  exception-handling, crash-reporting
bugsnag-java
Bugsnag error reporting for Java.
Stars: ✭ 51 (-42.7%)
Mutual labels:  crash-reporting, exception-handling
Bugsnag Php
Bugsnag error monitoring and crash reporting tool for PHP apps
Stars: ✭ 475 (+433.71%)
Mutual labels:  exception-handling, crash-reporting
bugsnag-symfony
Bugsnag notifier for the Symfony PHP framework. Monitor and report errors in your Symfony apps.
Stars: ✭ 42 (-52.81%)
Mutual labels:  crash-reporting, exception-handling
Bugsnag Js
Javascript error handling tool for Bugsnag. Monitor and report JavaScript bugs & errors.
Stars: ✭ 625 (+602.25%)
Mutual labels:  exception-handling, crash-reporting
Airbrake
The official Airbrake library for Ruby applications
Stars: ✭ 896 (+906.74%)
Mutual labels:  crash-reporting
Bugsnag Node
[DEPRECATED] Please upgrade to our Universal JS notifier "@bugsnag/js" • https://github.com/bugsnag/bugsnag-js
Stars: ✭ 48 (-46.07%)
Mutual labels:  crash-reporting
Sentry Ruby
Sentry SDK for Ruby
Stars: ✭ 724 (+713.48%)
Mutual labels:  crash-reporting
Rxjava2debug
RxJava 2.x extension to provide meaningful Stack Traces
Stars: ✭ 673 (+656.18%)
Mutual labels:  crash-reporting
Laravel Whoops Editor
Laravel Whoops Editor helps to open your code editor from exception stack trace.
Stars: ✭ 83 (-6.74%)
Mutual labels:  exception-handling
Mjn
⚡️Like loadash.get, but in ~200 bytes
Stars: ✭ 69 (-22.47%)
Mutual labels:  exception-handling
Bugsnag Android
Bugsnag crash monitoring and reporting tool for Android apps
Stars: ✭ 990 (+1012.36%)
Mutual labels:  crash-reporting
Sentry Laravel
Laravel SDK for Sentry
Stars: ✭ 927 (+941.57%)
Mutual labels:  crash-reporting
Airbrake Ruby
A plain Ruby Airbrake notifier
Stars: ✭ 52 (-41.57%)
Mutual labels:  crash-reporting
Bugsnag Laravel
Bugsnag notifier for the Laravel PHP framework. Monitor and report Laravel errors.
Stars: ✭ 746 (+738.2%)
Mutual labels:  crash-reporting
Bugsnag Python
Official bugsnag error monitoring and error reporting for django, flask, tornado and other python apps.
Stars: ✭ 69 (-22.47%)
Mutual labels:  crash-reporting
G3log
G3log is an asynchronous, "crash safe", logger that is easy to use with default logging sinks or you can add your own. G3log is made with plain C++14 (C++11 support up to release 1.3.2) with no external libraries (except gtest used for unit tests). G3log is made to be cross-platform, currently running on OSX, Windows and several Linux distros. See Readme below for details of usage.
Stars: ✭ 677 (+660.67%)
Mutual labels:  crash-reporting
Planb Android
A crash recovery library for Android. It allows tracking and handling crashes with different rules for debugging and production.
Stars: ✭ 29 (-67.42%)
Mutual labels:  crash-reporting
Sentry Clj
Sentry SDK for Clojure
Stars: ✭ 63 (-29.21%)
Mutual labels:  crash-reporting
Sentry
Sentry is cross-platform application monitoring, with a focus on error reporting.
Stars: ✭ 29,700 (+33270.79%)
Mutual labels:  crash-reporting

Android Defense Crash

Download TonyStark

为了方便中国同学,提供了翻译文档如下:中文文档

What's this

This’s a Crash Defense library in Android to help you catch the Java exceptions which you don’t expected.

Integration

  • Step 1 Find the build.gradle file in your project and add the code into it as follow.
allprojects {
  repositories {
    //other mavens
    maven(){
      url "https://dl.bintray.com/xuuhaoo/maven"
    }
  }
}
  • Step 2 Find the build.gradle file in the module that you want to integration
dependencies {
    implementation 'com.tonystark.android:defense-crash:last.version
}

Attentions: last.versionis a substitute word, the real version will be found in Download

Use

  • Initialize should be more earlier in application create, we suggest you put the init code in Application attachBaseContext(base:Context)

    • Sample
    override fun attachBaseContext(base: Context) {
     super.attachBaseContext(base)
     DefenseCrash.initialize(this)
     ...
    }
    
  • Install Defense library after initialize.

    • Sample
    override fun attachBaseContext(base: Context) {
     super.attachBaseContext(base)
     DefenseCrash.initialize(this)
     DefenseCrash.install { thread, throwable, isSafeMode, isCrashInChoreographer ->
       //thread: The crash happened’s thread.
       //throwable: The Exception exactly is.
       //isSafeMode: If application is allready crashed and we saved it that is mean you are in safe mode,
       //that happens most of the time is your Main Looper is compromised by some errors and not going to normal,and we keep it runing that’s called safe mode.
       //isCrashInChoreographer: If crash happend in OnMeasure/OnLayout/OnDraw it will case screen blank or some view not draw successfully
       //If you got this true, we suggest you restart or finish the current Activity for good
    
       //You can throw some throwables here and if you do that, will case VM got this throwable and shutdown your process.
       //And you should do somting here such as:
       Log.i("Exceptionhandler",
         "thread:${thread.name} " +
         "exception:${throwable.message} " +
         "isCrashInChoreographer:$isCrashInChoreographer " +
         "isSafeMode:$isSafeMode")
       throwable.printStackTrace()
       FirebaseCrashlytics.getInstance().recordException(throwable);
     }
    }
    
  • Uninstall Defense library if you don’t need this.

    • Sample
     DefenseCrash.unInstall()
    
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].