Tips for lightweight Android Applications

后端 未结 2 1037
耶瑟儿~
耶瑟儿~ 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:02

    A good place to start would be the Designing for Performance and Designing for Responsiveness documents in the Android Developer Documentation.

    0 讨论(0)
  • 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
    0 讨论(0)
提交回复
热议问题