Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

red simple screen

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.

simple screen

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 {
  jcenter()
}

dependencies {
    debugimplementation 'com.melegy.redscreenofdeath:red-screen-of-death:0.1.2'
    releaseimplementation 'com.melegy.redscreenofdeath:red-screen-of-death-no-op:0.1.2'
}

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.


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

Comments are closed.