# Implementing a Global try-catch for an Android Application

DevFeed: [Implementing a Global try-catch for an Android Application](<https://devfeed.tech/articles/implementing-a-global-try-catch-for-an-android-application-29051.md>)

Original publisher: [Read original article](<https://dmitrysamoylenko.com/2020/08/19/android_try_catch.html>)

Author: Dmitry Samoylenko

Published: 2020-08-19T00:00:00Z

Content type: tutorial

Language: en

Sources: [Dmitry Samoylenko - Android Developer Blog](<https://devfeed.tech/sources/dmitry-samoylenko-android-developer-blog.md>)

Topics: [LineageOS](<https://devfeed.tech/topics/lineageos.md>), [Java](<https://devfeed.tech/topics/java.md>), [Crashlytics](<https://devfeed.tech/topics/crashlytics.md>), [Firebase](<https://devfeed.tech/topics/firebase.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [crashes](<https://devfeed.tech/tags/crashes.md>), [crashlytics](<https://devfeed.tech/tags/crashlytics.md>), [firebase](<https://devfeed.tech/tags/firebase.md>), [java](<https://devfeed.tech/tags/java.md>)

## AI overview

This Android tutorial explains how the ActivityThread and Looper architecture causes uncaught errors in activity or view callbacks to terminate an application. It presents a global error-handling approach that restarts the looper so the application can respond again, while recommending that caught crashes be sent to Firebase Crashlytics because they will no longer appear as standard crashes in Google Play reports.

## Source excerpt

Where in the Application is the main() Method Hidden?