Skip to content
0:00 / 0:00

#bluetoothlowenergy#gatt#androidsdk

Developing Bluetooth Smart Applications for Android Tutorial

InfoQ

234K subscribers • 65 videos on Hallway • Conference channel

YouTube
  • Recommended by 1 person: 1 on Stack Overflow and its sister sites.
  • Presented by Dave Smith, Sr. Android Engineer at Double Encore
  • May be out of date. The tools, versions or practices it shows have likely moved on.

Intermediate. Assumes working knowledge.

200K views12 years ago1 recommendation

Mobile developmentHardwareAndroid and Jetpack ComposeEmbedded systems

Dave Smith explains the Android Bluetooth LE APIs and demonstrates how to build GATT central and observer applications.

- Bluetooth GATT Basics - DEMO: Android GATT Central Application - Bluetooth LE Broadcasters - DEMO: Android LE Observer Application — Dave Smith, NewCircle instructor and Sr. Android Engineer at Double Encore will talk about Bluetooth LE API's, and show you how easy it is to add some really interesting capabilities to mobile applications using this technology. Android Training from NewCircle: crcl.to/t1pva **Transcript & additional resources: crcl.to/smart **More about the hardware accessories used in this video: kstechnologies.com/ **More info on Double Encore's app development services: doubleencore.com/

Why it's here

1 person recommends this

What people say. Recommended for its implementation hints and workarounds for unstable Bluetooth LE behavior on Android.

OneWorldon Stack Overflow • Recommends

On “Android 4.3 Bluetooth Low Energy unstable”

Important implementation hints (Perhaps some of those hints aren't necessary anymore due to Android OS updates.) Some devices like Nexus 4 with Android 4.3 take 45+ seconds to connect using an existing gatt instance. Work around: Always close gatt instances on disconnect and create a fresh instance of gatt on each connect. Don't forget to call android.bluetooth.BluetoothGatt#close() Start a new thread inside onLeScan(..) and then connect. Reason: BluetoothDevice#connectGatt(Context context, boolean autoConnect, BluetoothGattCallback callback) always fails, if called inside LeScanCallback() {...}.onLeScan(BluetoothDevice device, int rssi, byte[] scanRecord) in the same thread on Sams…