• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Android BluetoothLeGatt Sample doesnt work on my Android 7.0 Phone (HUAWEI P10 lite)

Ledi001

Lurker
Hello,

i want to test the sample code provided on GitHub, but it doesn't work on my Android (Android-Version 7.0) phone.
I imported the example code into Android Studio and flashed the app to the phone succesfully. It seems all worked fine.

I am able to open the App on the phone and start the scan but it is not possible to finde a device.

Can somebody give me a hint what maybe wrong?

https://github.com/googlesamples/android-BluetoothLeGatt/
 
Are you able to connect the phone to your computer, and deploy it from Android Studio to the phone? This could give you some information in the Logcat view.
If that reveals nothing, then your next step would be to run your app in debug mode, and set breakpoints at crucial places within your code, to investigate what's happening.
 
Back
Top Bottom