For our application, i have to connect to the ble-nana. For this connection i used the code provided as awnser to this question: Bleutooth connection to android studios. However, this code does not include a MainActivity. I added a MainActivity and now the appliction will open on my phone, but how do i refer to the BluetoothLeService so that i am able to connect to our ble-nano?
By opening to application on my phone, I also get a "fail to get file list" which i do not know to solve.
I/Perf: Connecting to perf service.
E/Perf: Fail to get file list com.example.treasurehuntv3
E/Perf: getFolderSize() : Exception_1 = java.lang.NullPointerException: Attempt to get length of null array
Fail to get file list com.example.treasurehuntv3
getFolderSize() : Exception_1 = java.lang.NullPointerException: Attempt to get length of null array