Hi
I am currently developing an application using MonkeyC, where I utilize Activity.getActivityInfo() and ActivityMonitor.getInfo() to retrieve activity metrics from the device. In the simulator, everything works as expected; however, when I deploy the application to an actual device, it crashes.
After testing and analyzing the issue, I have determined that the primary cause seems to be the retrieval of the aforementioned metrics. The only way I have been able to prevent the application from crashing is by delaying the retrieval of these metrics.
Additionally, I would like to know if there is any form of garbage collection available or recommended techniques to avoid this problem?
Any guidance or suggestions you could provide would be greatly appreciated.s