How does android modify the maximum number of Bluetooth search devices?

Source: Internet
Author: User

How does android modify the maximum number of Bluetooth search devices?

In this file, modify the following parameters of the function:

Bool btmtk_gap_discovery (native_data_t * nat, btbm_discovery_type mode)
{
...
Req_p-> inquiry_number = 25; // the number can be modify less than 25


Android Bluetooth development issues, automatically scans for code of other Bluetooth devices every 30 seconds

Handler handler1 = new Handler (){

/* (Non-Javadoc)
* @ See android. OS. Handler # handleMessage (android. OS. Message)
*/
@ Override
Public void handleMessage (Message msg ){
// TODO Auto-generated method stub
Switch (msg. what)
{
Case 2:
This. sendMessageDelayed (doCircle (), 3*1000 );
This. obtainMessage (2 );
Break;
Default:
Super. handleMessage (msg );
}
}
};

In doCircle (), write your scan function.

How can I quickly delete a connected bluetooth device from an Android phone?

Simple. Click settings, type an application, type an application, and click "manage" in the "all" dialog box to go up and down. The desired result is cleared under the Bluetooth point. Hope it will help you!
 

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.