Hi there.
I'm working on this tutorial that makes the app communicate with an Arduino via Bluetooth. The app works fine but I can see that it looses connectivity when the screen on my phone goes in sleep mode.
Since I in a further step like to experiment with SQL I would like to keep the Bluetooth connection open for incoming data.
From what I understand is that I have to create a service for this. I followed this little video and created the extra buttons, java class and included the code in the files shown in the video. I have spend the last 8 hours reading up via google and testing but I'm sorry to say that my knowledge is not sufficient. I have all the files and code from the video in my project.
I don't know how to proceed and appreciate any help and advice
I'm working on this tutorial that makes the app communicate with an Arduino via Bluetooth. The app works fine but I can see that it looses connectivity when the screen on my phone goes in sleep mode.
Since I in a further step like to experiment with SQL I would like to keep the Bluetooth connection open for incoming data.
From what I understand is that I have to create a service for this. I followed this little video and created the extra buttons, java class and included the code in the files shown in the video. I have spend the last 8 hours reading up via google and testing but I'm sorry to say that my knowledge is not sufficient. I have all the files and code from the video in my project.
I don't know how to proceed and appreciate any help and advice
