0
0
Android Kotlinmobile~20 mins

Crashlytics in Android Kotlin - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Crashlytics Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
ui_behavior
intermediate
2:00remaining
Crashlytics: What happens when a crash occurs?
In an Android app integrated with Crashlytics, what happens immediately after the app crashes?
AThe app automatically restarts and sends the crash report in the background.
BThe crash report is sent to Firebase immediately, even if the app is closed.
CThe crash report is saved locally and sent the next time the app starts.
DThe crash report is discarded unless the user manually sends it.
Attempts:
2 left
💡 Hint
Think about how Crashlytics handles network availability and app lifecycle.
🧠 Conceptual
intermediate
2:00remaining
Crashlytics: Purpose of custom keys
Why would you add custom keys to Crashlytics reports in your Android app?
ATo add extra information about app state that helps diagnose crashes.
BTo change the priority of crash reports sent to Firebase.
CTo prevent certain crashes from being reported to Firebase.
DTo automatically fix bugs based on the keys provided.
Attempts:
2 left
💡 Hint
Custom keys add context, not control over reporting or fixing.
lifecycle
advanced
2:00remaining
Crashlytics: When to initialize in Android app lifecycle?
Where is the best place to initialize Firebase Crashlytics in an Android app using Kotlin?
AInside the Application class's onCreate() method.
BInside the onDestroy() method of the first activity.
CInside a background thread after user login.
DInside the MainActivity's onStart() method.
Attempts:
2 left
💡 Hint
Crashlytics should be ready as early as possible in app startup.
🔧 Debug
advanced
2:00remaining
Crashlytics: Diagnosing missing crash reports
You integrated Crashlytics but notice some crashes are not appearing in Firebase console. Which of these is the most likely cause?
ACrashlytics requires manual user approval before sending reports.
BYou forgot to add internet permission in AndroidManifest.xml.
CFirebase project is not linked to Google Analytics.
DThe app is running in debug mode and crash reporting is disabled by default.
Attempts:
2 left
💡 Hint
Think about Crashlytics behavior in debug vs release builds.
navigation
expert
2:00remaining
Crashlytics: Handling user consent before crash reporting
Your app requires user consent before sending crash reports. Which approach correctly delays Crashlytics initialization until after consent is given?
Android Kotlin
class MyApp : Application() {
  override fun onCreate() {
    super.onCreate()
    // What to do here?
  }
  fun onUserConsentGiven() {
    // Initialize Crashlytics here
  }
}
ADo not initialize Crashlytics in onCreate(); initialize it only inside onUserConsentGiven() after consent.
BInitialize Crashlytics in onCreate() but disable data collection until consent is given.
CInitialize Crashlytics in onCreate() and remove it if user denies consent.
DInitialize Crashlytics in onCreate() and send crash reports immediately regardless of consent.
Attempts:
2 left
💡 Hint
Crashlytics supports enabling/disabling data collection dynamically.