Android App performance optimization

Source: Internet
Author: User


Problems encountered:

1) ANR

2) ListView, not smooth

3) activity start slow

4) animation is not smooth, pre-start stalling

5) Custom View start slow

6) OOM

7) Large number of database operations

8) The program slows down after a long running time


Basic idea:

1) The language layer solves the problem and improves the performance in syntax

2) Reasonable data structure and algorithm

3) Layout optimization, layout depth control

4) worker threads are detached from the UI thread

5) A reasonable caching mechanism

6) Reasonable use of NDK

7) Optimized SQL statements

8) Use tools to analyze problems to find bottlenecks


Optimization Tools:

View Optimization tool: Hierarchy view

Code optimization Tool: Lint

Memory, method Optimization tools: Heap, TraceView

Dalvik log analysis, logcat log analysis

The "Over-drawing" option for Android phone developer options.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.