"Android" How to improve the stability of their software

Source: Internet
Author: User
1 reasons: Many times our software will often crash, and can not be restored, this is generally the code we write may have a memory leak problem. 2 Solution: This time we need to use the memory analysis tool, I have debugged the code of others, one of his activity in a once to create once, the return time can not be automatically recycled, so the software memory consumption is high, I wrote a class is also, every time I can not destroy , later found to be called when the notification is caused, so the context of the call is set to ApplicationContext, after each entry and return can normally free memory, Android memory leakage of the big is activity, other such as network, file, Database memory leaks. Sometimes we feel that we write the software function is not a problem, but always feel not enough commercialization, in fact, we should follow the concept of commercial development, strict control of their own code quality, even if the writing is not good also to ensure that not occupy too much memory, in fact, the gap between Android and iOS is not big, the difference is the quality of the third Also NetEase music, the experience of Android is very poor, because of what, the interface busy rough, do not support gesture sliding, memory consumption is too large, a music app memory occupies incredibly more than 100MB, think how scary, memory leaks this I really can not introduce, because this need to slowly accumulate experience, Now I write only to ensure that the activity will not be rebuilt, so that the stability of the software has improved a lot, I believe it will do better.

"Android" How to improve the stability of their software

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.