Design analysis of ContentProvider class

Source: Internet
Author: User
ContentProvider class design is very good, transport as a member exists, to complete the function of binder, a bit like the combination mode, the completion of the forwarding/communication function encapsulated as an internal class, easy to forward external calls to external classes, this design is widely used in Android, Merging transport with ContentProvider will make the class functionality too complex. Debug found that the binder bn side starts a new thread processing each time the request is accepted, such as query starts a new thread object, and after execution completes, the thread ends.

Design analysis of ContentProvider class

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.