Modify Android serial Bluetooth app issue record

Source: Internet
Author: User

* The Android Bluetooth serial app downloaded online is based on Eclipse, but there are problems when importing into as.

The last thing I used was to create a new project under as and import the relevant files. However, there are other problems encountered.

* Some Bluetooth related function error, prompt similar to this "call requires API Level 8", in the Internet to find the solution provided by netizens to solve:

Yes, the problem is resolved after modifying to "Minsdkversion 18".

* Also need to add Bluetooth permission information, as well as the project to use the activity registration information, this should refer to the original project "Androidmanifest.xml" in the content

* After compiling, run the program, flashback, check is Getactionbar () The null pointer abnormal caused, but the fundamental reason or "androidmanifest.xml" in the contents of the wrong

In the red box, I'm done with the changes.

* I send a long string, and Bluetooth can only send very little data at a time, so I can only sub-package send.

In the design of the subcontracting, I used the handler postdelayed (Runnable, long) method to see

Modify Android serial Bluetooth app issue record

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.