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