Skip to main content
Version: 1.0.0

Android Network Call Tracking with Appxiom SDK

Appxiom SDK provides robust network call error monitoring for Android applications, enabling you to detect and report issues in your API calls with minimal integration effort. With a single line of code, you can track errors, exceptions, delays, and duplicate network calls, ensuring your app’s network layer is reliable and transparent.

Manual Reporting: Add custom OkHttp3Client to report network issues.

Type: 13 - Error in Status Code | Severity: Major
Type: 14 - Exception during network call | Severity: Major
Type: 15 - Delayed network call | Severity: Major
Type: 18 - Duplicate network call | Severity: Major

For advanced configuration, see the Customize Network Monitoring API.

Integrating Appxiom Network Monitoring

Appxiom SDK supports popular Android networking libraries including OkHttp, Retrofit. Follow the relevant section below to enable monitoring in your project.

Retrofit (No Existing OkHttpClient)

Add Appxiom client using the .client() function:

OkHttpClient client = new OkHttp3Client(new OkHttpClient.Builder()).build();
Retrofit retrofit = new Retrofit.Builder()
.client(client)
.addConverterFactory(GsonConverterFactory.create())
.build();

Retrofit (Already Using OkHttpClient)

Pass the current builder to OkHttp3Client and call .build():

OkHttpClient.Builder currentBuilder = new OkHttpClient.Builder();
// Builder customization codes
OkHttpClient client = new OkHttp3Client(currentBuilder).build();

OkHttp

If you use OkHttp directly, replace your default client with Appxiom’s OkHttp3Client:

client = new OkHttp3Client(new OkHttpClient.Builder()).build();

Add the following to your build.gradle:

implementation 'com.squareup.okhttp3:okhttp:x.x.x'

Frequently Asked Questions (FAQ)

Q: What network issues does Appxiom SDK detect?
A: Appxiom SDK detects status code errors, exceptions during network calls, delayed network responses, and duplicate network calls.

Q: Which networking libraries are supported?
A: Appxiom SDK supports OkHttp, Retrofit for Android network monitoring.

Q: How do I enable network monitoring in my app?
A: Integrate OkHttp3Client as shown above for OkHttp and Retrofit.

Q: Can I customize which network calls are monitored?
A: Yes, see the Customize Network Monitoring API for options like whitelisting hosts, masking headers, and setting timeouts.

Q: Where are network issues reported?
A: Like all issues, network issues are available on the Appxiom dashboard for review and analysis.

Q: Does Appxiom SDK impact network performance?
A: The SDK is designed to have minimal impact on network performance while providing comprehensive error monitoring.

Q: What else does Appxiom SDK monitor?
A: In addition to network calls, Appxiom SDK tracks memory leaks, abnormal memory usage, ANRs, frame rate issues, crashes, and more.

Q: Are there any special setup required in AndroidManifest.xml for network monitoring?
A: No special setup is required beyond standard Appxiom SDK initialization and integration.