Question: I am trying to implement the BluetoothLeGatt Example Project from android into my own app to handle the BLE Services. BluetoothLeGatt Example Android: https://github.com/googlesamples/android-BluetoothLeGatt/tree/master/Application/src/main/java/com/example/android/bluetoothlegatt The
I am trying to implement the BluetoothLeGatt Example Project from android into my own app to handle the BLE Services.
BluetoothLeGatt Example Android: https://github.com/googlesamples/android-BluetoothLeGatt/tree/master/Application/src/main/java/com/example/android/bluetoothlegatt
The actual state is that i have my own app which has only one activity and i am switching between the other pages with fragments. I would like to implement the android example so i can receive Bluetooth data and switch/exchange bluetooth date between these two fragments or save it into a own data class (via an Interface or something like that not sure right now).
How can I change the code to make it avaibale to exchange bluetooth date between these two fragments in one activity?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
