This example describes the simple Bluetooth program implemented by Android. Share to everyone for your reference, specific as follows:
I will introduce the Android Bluetooth program in this article. This program is to realize the mobile phone as a computer PPT playback of the remote control: the volume Plus and volume
This article from http://blog.csdn.net/hellogv/, reference must indicate the source!
Last time, we introduced how Android uses a microphone to collect and display analog signals. This collection method is applicable to scenarios where no I/O control is required and signals are read. If the sensor itself needs to contain a control circuit (for example, the acquisition of blood oxygen signals requires infrared and infrared emissions), then the sensor it
I. Introduction to ANDROID low power Bluetooth (BLE) APIfrom Android 4.3 (API 18) to support the core function of Bluetooth low power, ble, ble Bluetooth protocol is the GATT protocol, BLE related classes are not many, There are several classes in the Android.bluetooth pack
The previous article introduced the Android uses the microphone to collect and display the analog signal realization method, this kind of collection method is suitable for without IO control, reads the signal simply. If the sensor itself needs to contain a control circuit (for example, the acquisition of blood oxygen signals requires infrared and infra-red emission), then the sensor itself will need to take a piece of the main control IC, in-chip acqu
When using the mobile phone, Bluetooth communication brings us a lot of convenience. So how does Bluetooth develop on Android phones? This article illustrates the knowledge of Android Bluetooth development in a practical way.
1, the use of
The following describes how to use Bluetooth in Android.
1. Import related packages:Import Android. Bluetooth .*;
2. Set permissions.
If you want more advanced user permission settings
3. Android has a javasthadapter Singleton class, which must be used first, that
Android Bluetooth Low-Power (BLE) is a great tool to get the steps of Xiaomi bracelet, androidble
Now the Internet of Things is booming, and Xiaomi's wristband and other products, next we will study the progress Logging Function of Xiaomi's wristband.
Tool
Package com. zsl. bluetoothdemo. ble; import android. bluetoo
In the modern smart phone field, the Bluetooth function has become very common, so how to develop Bluetooth in the Android Application Development Process, today we will introduce the use of Android Bluetooth Stack bluez.
Many developers did not find any reference for the
Rumors about the new features of Android 4.3 refer to two new Bluetooth-related features, which are worth noting.
1. Bluetooth Low Energy (low-power Bluetooth Technology)
Features: The peak energy consumption is only half of that of traditional Bluetooth devices. The device
Recently do an Android application, with Bluetooth signal control an instrument, through a Bluetooth to the serial port device, send Bluetooth signal, and then converted to serial command sent to the instrument. The Bluetooth device is as follows:How do I get this
1, Bluetooth is a short-distance, low-bandwidth point-to-point communication protocol. Bluetooth is one of the most widely used wireless communication protocols, mainly for short-distance communication, the advantage is low power consumption, transmission speed is relatively fast. But the disadvantage is also obvious, is the transmission distance is relatively short.Bluetooth is almost every mobile phone st
In recent projects, you need to implement the function of transmitting the apk via Bluetooth, which allows you to search for nearby bluetooth mobile phones and share files. From the perspective of demand, the Bluetooth transmission module provided by the android mobile phone can meet the needs, and the implementation i
The previous article introduced three methods of phone pairing connection. This article describes how to search for Bluetooth devices and actively pair and connect to them using a complete code example.
Package jason.com; import java. io. IOException; import java. lang. reflect. method; import java. util. arrayList; import java. util. list; import java. util. UUID; import android. app. activity; import
This example describes the Bluetooth test for Android programming. Share to everyone for your reference. The specific analysis is as follows:
First, software platform:
Win7 + eclipse + SDK
Second, design ideas:
With the countdown timer to achieve Bluetooth open, visible, scanning three functions
Third, the source code:
Main.xml:
Test_bluetooth.jav
This article describes the android BLE Bluetooth 4.0, that is, API level >= 18, and Bluetooth 4.0 mobile phone can be used, if the phone system version API level First send the official demo, interested in the past to see: http://developer.android.com/guide/topics/connectivity/bluetooth-le.html.
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.