The application may be doing too much work on its main thread

前端 未结 17 1845
挽巷
挽巷 2020-11-21 07:34

I am new to Android SDK/API environment. It\'s the first I am trying to draw a plot/chart. I tried running different kinds of sample codes the emulator using 3 different fre

17条回答
  •  再見小時候
    2020-11-21 08:07

    I too had the same problem.
    Mine was a case where i was using a background image which was in drawables.That particular image was of approx 130kB and was used during splash screen and home page in my android app.

    Solution - I just shifted that particular image to drawables-xxx folder from drawables and was able free a lot of memory occupied in background and the skipping frames were no longer skipping.

    Update Use 'nodp' drawable resource folder for storing background drawables files.
    Will a density qualified drawable folder or drawable-nodpi take precedence?

提交回复
热议问题