Skip to content

Instantly share code, notes, and snippets.

@stkent
Last active November 16, 2025 19:16
Show Gist options
  • Select an option

  • Save stkent/a7f0d6b868e805da326b112d60a9f59b to your computer and use it in GitHub Desktop.

Select an option

Save stkent/a7f0d6b868e805da326b112d60a9f59b to your computer and use it in GitHub Desktop.
Android Bluetooth Low Energy (BLE) Resources

Background

Platform-Agnostic

Android-Specific

  • "Android Lollipop: Bluetooth LE Matures" (video).
  • "Bluetooth (LE) with Dave (devunwired) Smith" (podcast).
  • "State of BLE on Android in 2022" (slides, video).

Libraries

Building

Resources relevant to building Bluetooth Low Energy Android applications from scratch.

In-Depth Guides

Implementations

Android Source Code

Stack Overflow

Useful users, questions, answers, and comments from Stack Overflow's Q&A.

Google Issues

(You must sign in with a Google account to access these.)

@sarbogast

Copy link
Copy Markdown

Here is a more complete version of the code that does not produce any result, nor any error. The callback is just never called.

bluetoothAdapter?.bluetoothLeScanner?.startScan(
    arrayListOf(ScanFilter.Builder().setServiceUuid(ParcelUuid(UUID.fromString("00004865-726f-6e54-7261-636b2d475053"))).build()),
    scanSettingsBuilder.build(),
    leScanCallback
)

@stkent

stkent commented Nov 8, 2019

Copy link
Copy Markdown
Author

@stkent

stkent commented Apr 25, 2020

Copy link
Copy Markdown
Author

@ret394 thanks for the note; I added a comment about signing in to the Google issues links.

@comann

comann commented Oct 6, 2020

Copy link
Copy Markdown

any future considerations for adding documentation for the DeviceCompanion API that targets api 26 or higher?

@stkent

stkent commented Oct 6, 2020

Copy link
Copy Markdown
Author

@comann unfortunately I haven't worked with Bluetooth for many years, and have no plans to do so in the near future :(. The new APIs you mention look interesting but also appear to operate at a higher level of abstraction than the APIs documented here. I would probably recommend creating a separate document if you are looking to collect resources on them specifically.

@ctkqiang

Copy link
Copy Markdown

Do you have the Qualcomm CSR BLE ?

@stkent

stkent commented Jan 13, 2021

Copy link
Copy Markdown
Author

Not sure what you're asking, sorry John! So the answer is probably: no :)

@ctkqiang

Copy link
Copy Markdown

Not sure what you're asking, sorry John! So the answer is probably: no :)

Ouch , Thanks Anyway :)

@SmrutiRanjanSahoo1997

Copy link
Copy Markdown

please help me solving GATT_ERROR 133.
I am stock here and can't go ahead.
It shows 7times outof 10.
specifically number of times decreases or increased according to phone models.

Thanks in advance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment