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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!