/ Apps

A simple Crash detector for Android apps

A simple Crash detector for Android apps

Funny Crash

A simple Crash detector for Android apps that allows you to receive crashes from different devices or permit user to send a bug or feedback with screenshot when he shake his device.

  • API 21+

funnyCrash_record

Download

Add the JitPack repository to the build.gradle file:

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

Add the Gradle dependency:

    implementation 'com.github.minageorge5080:Funny-Crash:1.1.2'

Usage

Setup in your application class

FunnyCrash.initialize(this)
FunnyCrash.showExcuseDialog = false // default is true.

Setup the listener to receive crashes or reports in your mainActivity or mainViewModel


 FunnyCrash.reportListener = object : FunnyCrashReportListener {
            override fun onReceiveReport(reportModel: ReportModel) {
                Toast.makeText([email protected], reportModel.info, Toast.LENGTH_SHORT).show()
                if (reportModel.reportType == FunnyCrashConstants.REPORT)
                    screenShot_imageView.setImageBitmap(BitmapFactory.decodeFile(reportModel.file?.absolutePath))
            }
        }

Contributing.

All pull requests are welcome, make sure to follow the contribution guidelines when you submit pull request.

  1. Fork it!
  2. Checkout the development branch: git checkout development
  3. Create your feature branch: git checkout -b my-new-feature
  4. Add your changes to the index: git add .
  5. Commit your changes: git commit -m 'Add some feature'
  6. Push to the branch: git push origin my-new-feature
  7. Submit a pull request against the development branch

GitHub