How Crashlytics Can Be Used In Android Studio

[Solved] How Crashlytics Can Be Used In Android Studio | Swift - Code Explorer | yomemimo.com
Question : how crashlytics can be used in android studio

Answered by : hannan

val crashButton = Button(this)
crashButton.text = "Test Crash"
crashButton.setOnClickListener { throw RuntimeException("Test Crash") // Force a crash
}
addContentView(crashButton, ViewGroup.LayoutParams( ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT))

Source : | Last Update : Mon, 01 Nov 21

Answers related to how crashlytics can be used in android studio

Code Explorer Popular Question For Swift