Track Screen Loading Delay in Android with Appxiom SDK
Automatic Detection: Screen load delay detection is enabled by default and works in both debug and release builds.
Appxiom SDK automatically detects and reports screen (activity) loading delays in your Android application, helping you identify and resolve UI performance bottlenecks. This feature is enabled by default in both debug and release builds, requiring no extra setup after basic integration.
How Screen Loading Delay Detection Works
- Appxiom SDK auto-detects activity loading delays after basic integration. See the How To Integrate section for setup instructions.
- If any activity takes more than
6 secondsto load, a bug report is automatically generated and sent to the Appxiom dashboard.
Setting a Custom Screen Loading Threshold
You can set a custom screen loading delay threshold (in milliseconds) using the @AX annotation in your Application class. If any activity exceeds this threshold, it will be reported as a bug.
- Java
- Kotlin
@AX(screenLoaddelayTimeout = 3000)
public class BlogApp extends Application {
@Override
public void onCreate() {
super.onCreate();
Ax.init(this);
}
}
@AX(screenLoaddelayTimeout = 3000)
class BlogApp: Application() {
override fun onCreate() {
super.onCreate()
Ax.init(this)
}
}
Frequently Asked Questions (FAQs)
Q: Is screen loading delay detection enabled by default?
A: Yes, this feature is automatically enabled in both debug and release builds after basic SDK integration.
Q: What is the default threshold for reporting a screen loading delay?
A: The default threshold is 6 seconds. Any activity taking longer will be reported as a bug.
Q: How can I set a custom screen loading delay threshold?
A: You can set a custom screen loading delay threshold using the @AX annotation in your Application class.
Use the @AX(screenLoaddelayTimeout = <milliseconds>) annotation in your Application class to set a custom threshold.