# Tablets Monitoring

**URL:** <https://community.dynatrace.com/t/tablets-monitoring/49410>\
**Category:** Open Q&A\
**Tags:** application-monitoring\
**Created:** [December 18, 2024, 11:30am UTC](https://community.dynatrace.com/t/tablets-monitoring/49410 "2024-12-18T11:30:10Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![kunaljais](https://avatars.discourse-cdn.com/v4/letter/k/ecae2f/32.png) [@kunaljais](https://community.dynatrace.com/u/kunaljais)\
**Post date:** [December 18, 2024, 11:30am UTC](https://community.dynatrace.com/t/tablets-monitoring/49410/1 "2024-12-18T11:30:10Z")

</div>

Hello Dynatrace’s,

We have the APK installed on multiple tablets, and the requirement is to receive an alert in Dynatrace whenever the APK gets stuck. Currently, application team are monitoring this manually by observing a specific screen displayed on the tablet when the APK is in stuck mode.

Is it possible to set up an alert in Dynatrace for this use case?

Thank You

---

<div class="post-metadata">

**Author:** ![PacoPorro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pacoporro/32/36087_2.png) [@PacoPorro](https://community.dynatrace.com/u/PacoPorro)\
**Post date:** [December 18, 2024, 12:53pm UTC](https://community.dynatrace.com/t/tablets-monitoring/49410/2 "2024-12-18T12:53:12Z")

</div>

If your application can detect the “stuck” mode, you can use&nbsp;  
[Instrumentation via OneAgent SDK for Android in RUM Classic — Dynatrace Docs](https://docs.dynatrace.com/docs/shortlink/oneagent-sdk-for-android#report-errors)&nbsp;  
But if the application itself is freeze, I’m not sure if you’ll be able to call the onagent sdk.

---

<div class="post-metadata">

**Author:** ![kunaljais](https://avatars.discourse-cdn.com/v4/letter/k/ecae2f/32.png) [@kunaljais](https://community.dynatrace.com/u/kunaljais)\
**Post date:** [December 19, 2024, 6:06am UTC](https://community.dynatrace.com/t/tablets-monitoring/49410/3 "2024-12-19T06:06:35Z")

</div>

Thank you for your response,

Whenever the APK gets stuck, a specific screen is displayed on the tablet, indicating that the APK is in a stuck state.

By viewing the screen or screenshot, they can identify that the APK is in a stuck state.

---

<div class="post-metadata">

**Author:** ![Peter\_Youssef](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/peter_youssef/32/14668_2.png) [@Peter\_Youssef](https://community.dynatrace.com/u/Peter_Youssef)\
**Post date:** [December 19, 2024, 7:18pm UTC](https://community.dynatrace.com/t/tablets-monitoring/49410/4 "2024-12-19T19:18:19Z")

</div>

Hi&nbsp;[@kunaljais](https://community.dynatrace.com/user/83361)

In addition to the provided guidance by&nbsp;[@PacoPorro](https://community.dynatrace.com/user/40713), PFA comment:

Make sure the Android application (APK) is instrumented with the **Dynatrace mobile monitoring** SDK.

The below data is collected properly as per the instrumentation:

- App crashes
- Performance bottlenecks (slow response times)
- Errors
- User sessions and interactions.

The instrumentation should **capture** relevant data that would indicate when the app is stuck or unresponsive (for example, if the app is not responding to user input or backend API calls). If the app already has logging or error handling for being stuck, ensure that this information is being logged properly in a way that Dynatrace can capture.

If the app doesn’t directly send a “stuck” status to Dynatrace, you could monitor certain **custom metrics** or **logs** that could indicate that the app is stuck:

- **Custom Metric:** If the app has a specific timeout or a stuck flag (such as a timer or a state variable indicating that the app is stuck), you can expose this as a custom metric to Dynatrace. This could be sent from the mobile app via the Dynatrace SDK.
- **Via Logs:** If the application is logging specific events when it gets stuck, make sure those logs are sent to Dynatrace. You can configure Dynatrace to track logs and set up alerts based on specific keywords or log messages.

Hoping it helps addressing the raised concern.

BR,

Peter

---

<div class="post-metadata">

**Author:** ![PacoPorro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pacoporro/32/36087_2.png) [@PacoPorro](https://community.dynatrace.com/u/PacoPorro)\
**Post date:** [December 20, 2024, 12:30pm UTC](https://community.dynatrace.com/t/tablets-monitoring/49410/5 "2024-12-20T12:30:54Z")

</div>

Then if you can show the screen , that means you will be able to send the error.

```javascript
// report an error code
Dynatrace.reportError("error_code_name", -1);
// report an exception
Dynatrace.reportError("exception_name", exception);

```

---

<div class="post-metadata">

**Author:** ![Peter\_Youssef](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/peter_youssef/32/14668_2.png) [@Peter\_Youssef](https://community.dynatrace.com/u/Peter_Youssef)\
**Post date:** [December 20, 2024, 12:45pm UTC](https://community.dynatrace.com/t/tablets-monitoring/49410/6 "2024-12-20T12:45:57Z")

</div>

Hello&nbsp;[@PacoPorro](https://community.dynatrace.com/user/40713)&nbsp;  
Thanks for code level, let’s work on it together development wise from your end&nbsp;:wink:&nbsp;:man\_technologist: and theoretically from my modest POV&nbsp;:slightly\_smiling\_face:.

KR,

Peter
