Tips for lightweight Android Applications

后端 未结 2 1042
耶瑟儿~
耶瑟儿~ 2021-02-02 16:25

I am starting to develop Android applications and I would like to know if there are any tips for creating lightweight applications. This is my first attempt to write application

2条回答
  •  遇见更好的自我
    2021-02-02 17:23

    Realize that you are coding for a platform with limited memory, so try not to allocate memory unless you absolutely have to. The last thing you want is for the garbage collector to kick in and start eating CPU cycles. Also, quite often "performance" is synonymous with "user experience" so if you have to do anything CPU intensive, do it in the background and out of the UI thread.

    Here is some additional information that you might find useful:

    • Turbo Charge Your UI
    • Coding for Battery Life

提交回复
热议问题