Android Binder Use

Source: Internet
Author: User

Let's précis-writers for a moment today

One thing to do is to change localsocket communication to binder communication,

The data passed has the basic data structure body image data

Steps:

The first is from the Internet to find a binder BP bn example, wrote two bin file separately adb shell run up can communicate

Then consider the two-way communication of binder, also write an example, can also run

Then porting two-way communication to their own code, made two errors, resulting in debugging for several days, almost collapsed, error one: Bnxxxx ontransact in the case of a, because there is no write break;

Check again for error two: Two-way communication, one party has not been listening, causing the other party to send data, how can not receive.

The detailed code will be posted again next time.

Android Binder Use

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.