Currently, the documentation suggests that Sentry should be initialized in Activity.onCreate. However, if the application is ever started from a different Activity, this code will not be run. This code could be called from all of the activity entry points in the app but it's easy to forget.
In theory, a preferable approach would be to initialize Sentry in Application.onCreate, which runs before any Activities start. Is there any problem with doing this? If not, I'd recommend updating the docs to officially support this configuration.
Currently, the documentation suggests that Sentry should be initialized in
Activity.onCreate. However, if the application is ever started from a different Activity, this code will not be run. This code could be called from all of the activity entry points in the app but it's easy to forget.In theory, a preferable approach would be to initialize Sentry in
Application.onCreate, which runs before any Activities start. Is there any problem with doing this? If not, I'd recommend updating the docs to officially support this configuration.