Android Learning Notes

Source: Internet
Author: User
1.sleep (), Wait (), notify (), Notifyall ( ) sleep () is a static method of the thread class, blocking the thread for a certain amount of time after the thread is in a state that can be scheduled to run, wait (), notify (), Notifyall () is the method used when using an internal object bar lock when a thread needs to satisfy a condition, call wait () to add this thread to the wait set, notify () (disassociate a single thread), Notifyall () (Dismiss all threads) for the blocking state of the waiting set thread.   2.android Memory Overflow issues (1) The query database does not have a close cursor (2) When constructing adapter, no cached Convertview (3) Bitmap objects are not used when the object is not called recycle () Free memory (4) does not properly release the object's reference

Android Learning Notes

Related Article

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.