Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android

Sjors Theuns
Sjors Theuns
6,091 Points

Android Development: "This app is causing your device to run slowly"

I developed an Android app with Android Studio.

Some customers get a message/warning while running the app: "This app is causing your device to run slowly"

I have no idea where to start to fix this issue. I tried searching on several forums, but there is not much information. And also I don't have any personal contact with someone having this issue, so asking for more details is not possible.

This is what I do know:

  • It's not a problem on the simulator
  • It's not a problem on every device (seems to be only on some Samsung phones)
  • When running in the simulator I see the following messages in the monitor: Skipped 197 frames! The application may be doing too much work on its main thread. and getSlotFromBufferLocked: unknown buffer: 0xabe6dc90

Does anyone know if this could be causing the error or perhaps have any other clue to get me in the right direction? The frame skipping is something bad, so I need to look at this anyway.

Thanks in advance.