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

前端 未结 17 1883
挽巷
挽巷 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:18

    Try to use the following strategies in order to improve your app performance:

    • Use multi-threading programming if possible. The performance benefits are huge, even if your smart phone has one core (threads can run in different cores, if the processor has two or more). It's useful to make your app logic separated from the UI. Use Java threads, AsyncTask or IntentService. Check this.
    • Read and follow the misc performance tips of Android development website. Check here.

提交回复
热议问题