Setup
Android SDK
Install and configure Hardal for your Android applications
Installation
Add this code to your Android project to initialize Hardal and start sending events:
Configuration Options
For Android integration, you can customize the following:
- Custom event properties
- Event batching
- Retry logic for failed requests
- Background thread management
Example Usage
Troubleshooting
Validation
To validate your Android integration:
- Monitor Logcat in Android Studio
- Use the Network Profiler to inspect requests
- Check for successful HTTP responses (200 status code)
- Verify events appear in your Hardal dashboard
For development, you can enable detailed logging by setting the log level to VERBOSE in your application’s debug configuration.