Android error tracking installation
Add the PostHog Android SDK to your Initialize PostHog in your Application class: Once installed, PostHog will automatically start capturing events. You can also manually send events to test your integration: This configuration is client-side only. Support for remote configuration
in the error tracking settings
will be added in a future release. You can autocapture exceptions by setting the When enabled, this automatically captures We currently don't support source code context associated with an exception. These features will be added in a future release. It is also possible to manually capture exceptions using the This is helpful if you've built your own error handling logic or want to capture exceptions that are handled by your application code.Install the dependency
Requiredbuild.gradle dependencies:Configure PostHog
RequiredSend events
RecommendedSet up exception autocapture
RecommendederrorTrackingConfig.autoCapture
argument to true when initializing the PostHog SDK.$exception events when errors are thrown by wrapping the Thread.UncaughtExceptionHandler listener.Manually capture exceptions
OptionalcaptureException method:

