red-screen-of-death

Android library that allows launching an activity when your app crashes with the crash details. Similar to Flutter red screen of death screen

License

License

RedScreenOfDeath License
GroupId

GroupId

com.mlegy.redscreenofdeath
ArtifactId

ArtifactId

red-screen-of-death
Last Version

Last Version

0.1.3
Release Date

Release Date

Type

Type

aar
Description

Description

red-screen-of-death
Android library that allows launching an activity when your app crashes with the crash details. Similar to Flutter red screen of death screen
Project URL

Project URL

https://github.com/mlegy/red-screen-of-death
Source Code Management

Source Code Management

https://github.com/mlegy/red-screen-of-death/tree/main

Download red-screen-of-death

How to add to project

<!-- https://jarcasting.com/artifacts/com.mlegy.redscreenofdeath/red-screen-of-death/ -->
<dependency>
    <groupId>com.mlegy.redscreenofdeath</groupId>
    <artifactId>red-screen-of-death</artifactId>
    <version>0.1.3</version>
    <type>aar</type>
</dependency>
// https://jarcasting.com/artifacts/com.mlegy.redscreenofdeath/red-screen-of-death/
implementation 'com.mlegy.redscreenofdeath:red-screen-of-death:0.1.3'
// https://jarcasting.com/artifacts/com.mlegy.redscreenofdeath/red-screen-of-death/
implementation ("com.mlegy.redscreenofdeath:red-screen-of-death:0.1.3")
'com.mlegy.redscreenofdeath:red-screen-of-death:aar:0.1.3'
<dependency org="com.mlegy.redscreenofdeath" name="red-screen-of-death" rev="0.1.3">
  <artifact name="red-screen-of-death" type="aar" />
</dependency>
@Grapes(
@Grab(group='com.mlegy.redscreenofdeath', module='red-screen-of-death', version='0.1.3')
)
libraryDependencies += "com.mlegy.redscreenofdeath" % "red-screen-of-death" % "0.1.3"
[com.mlegy.redscreenofdeath/red-screen-of-death "0.1.3"]

Dependencies

compile (6)

Group / Artifact Type Version
org.jetbrains.kotlin : kotlin-android-extensions-runtime jar 1.4.32
org.jetbrains.kotlin : kotlin-stdlib jar 1.4.32
androidx.appcompat » appcompat jar 1.2.0
androidx.constraintlayout » constraintlayout jar 2.0.4
com.google.android.material » material jar 1.3.0
androidx.databinding » viewbinding jar 4.1.3

Project Modules

There are no modules declared in this project.

Red Screen Of Death

What

A simple screen that is shown when your app gets crashed instead of the normal crash dialog.

It's very similar to the one in Flutter.

Install

RedScreenOfDeath is distributed via JCenter. Add the dependencies to your build.gradle file.

There is also a no-op implementation of the library that you can use to make it easier to strip it from your release builds.

In your build.gradle:

repositories {
  mavenCentral()
}

dependencies {
    debugImplementation 'com.mlegy.redscreenofdeath:red-screen-of-death:0.1.3'
    releaseImplementation 'com.mlegy.redscreenofdeath:red-screen-of-death-no-op:0.1.3'
}

In your Application class:

  • Kotlin
class MyApp : Application() {  
    override fun onCreate() {  
        super.onCreate()  
        RedScreenOfDeath.init(this)  
    }  
}
  • Java
public class MyApp extends Application {
    @Override
    public void onCreate() {
        super.onCreate();
        RedScreenOfDeath.init(this);
    }
}

And you are done!

Disclaimer

This should be used only in your debug buids because if you have any other library that has it's own implementation of UncaughtExceptionHandler it won't work. Red Screen of Death doesn't propagate the exception to other exception handlers, because we don't want to show the "App stopped" dialog.

Versions

Version
0.1.3