Exception Handler

Additional

Language
Java
Version
1.0.0 (Oct 17, 2016)
Created
Oct 17, 2016
Updated
Oct 29, 2022 (Retired)
Owner
Rian Erlangga Saputra (rerlanggas)
Contributors
Rian Erlangga Saputra (rerlanggas)
rianask
rian4x
3
Activity
Badge
Generate
Download
Source code

ExceptionHandler

Simple Library for Redirect to destination Activity when apps force close

This is an Android project allowing to Intent to destination Activity when apps force close in the simplest way possible.

Usage

To use this library you can add ExceptionHandler library in your project or you can also grab it via Gradle:

Add it in your root build.gradle at the end of repositories:

allprojects {
   repositories {
    maven { url "https://jitpack.io" }
   }
}

Add dependencies :

dependencies {
     implementation 'com.github.rerlanggas:ExceptionHandler:1.0.0'
}

JAVA

add this code in first activity launch

        //init exception handler, add destination activity
        ExceptionHandler.init(this, [[Destination Activity]].class);

Kotlin

add this code in first activity launch

        //init exception handler, add destination activity
        ExceptionHandler.init(this, [[Destination Activity]]::class.java);

Sample Code to Use

Open this Sample Code to Using this Library https://github.com/rerlanggas/SampleExceptionHandler

Reference

http://stackoverflow.com/questions/9879038/android-exceptions-without-force-close

LICENCE

Apache License 2.0.