• Stars
    star
    176
  • Rank 216,987 (Top 5 %)
  • Language
    Kotlin
  • License
    Apache License 2.0
  • Created about 4 years ago
  • Updated over 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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.

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.

More Repositories

1

retrofit2-kotlin-coroutines-call-adapter

Kotlin
138
star
2

linkester

Linkester is an Android library that aims to help Android developers test their deep links implementation.
Kotlin
82
star
3

Slack-logger-bot

Simple slack bot that can save all of your team messages on your server so that you can still read them even if you exceeds the 10,000 messages in the archive.
JavaScript
49
star
4

Suspend-at-Prayers

simple python script to suspend Ubuntu at the prayer times
Python
7
star
5

play-silhouette-reactivemongo-angular-seed

Seed Application for PlayFramework 2.4, Silhouette 3.0, ReactiveMongo 0.11 and AngularJS.
JavaScript
6
star
6

countdown-timer-compose-challenge

Kotlin
5
star
7

RSSFeedFilter

Simple RSS Feed Filter with python
Python
3
star
8

weather-app-compose-challenge

Kotlin
2
star
9

Popular-Movies-App

Android Developer Nanodegree Program - Final Project #1
Java
2
star
10

CheckLikesNumber

Simple python script allows me to choose one of my pages, and post something if the fans number exceeds a specific number I choose.
Python
2
star
11

Data-Structure-Class

Data Structure implementations of Data Structure class (3rd year, 1st term) Computer And Systems Department, Faculty of Engineering, Mansoura University
Visual Basic
2
star
12

do-me-favor-api

Do me a favour API
JavaScript
1
star
13

do-me-favor-android-udacity

Java
1
star
14

Direct-link-grabber

simple python script to grab the direct files on Google Drive or DropBox
Python
1
star
15

moshi-validation-adapters

WIP
Kotlin
1
star
16

Go-Ubiquitous

Java
1
star
17

Simple-Chatting-APP

This is a simple cheating app written in Java
Java
1
star
18

Sunshine-v2

Java
1
star
19

Build-It-Bigger

Project #4 in Android Developer Nanodegree by Google
Java
1
star
20

puppy-adoption-app

Kotlin
1
star
21

StockHawk

Udacity Android Developer Nanodegree Project 3
Java
1
star
22

XYZ-Reader

Project #5 in Android Developer Nanodegree by Google
Java
1
star