0

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
Share a link to this question (includes your user id)
| edit | | close | delete |
0

Take a look at this example project, it has a link to the full source code on Github.

Share a link to this answer (includes your user id)
| edit | delete |

Your Answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.