Bluetooth question

naveenpn

Member
Licensed User
Longtime User
Hi,
I wanted to check whether the following are feasible:

Create a service which will in background periodically (say every 30secs) wakeup & attempt to connect to one of the paired Bluetooth devices. If it connects successfully, it receives some data from the device, process data and go to sleep again. If it fails to connect (probably device is out of range), then it simply goes to sleep again. My main doubt lies whether bluetooth activity can be performed from within a service after it starts following a wakeup?

Another option (extreme) I would love is to allow for the phone to listen to bluetooth connection when it sleeps and wake up when another device connects to the phone. If at all this is possible, please let me know how this can be achieved.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…