Skip to content

Instantly share code, notes, and snippets.

@mukeshsolanki
Last active April 5, 2022 06:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mukeshsolanki/ed1f25c21bede717ac05d8b9aadc8ea6 to your computer and use it in GitHub Desktop.
Save mukeshsolanki/ed1f25c21bede717ac05d8b9aadc8ea6 to your computer and use it in GitHub Desktop.
class ExampleApp : Application(), ExceptionListener {
override fun uncaughtException(thread: Thread, throwable: Throwable) {
// TODO Make sure you are logging this issue some where like Crashlytics.
// Also indicate that something went wrong to the user like maybe a dialog or an activity.
Log.d("ExampleApp", t.message)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment