android - Initialize a Bluetooth connection in an activity and use the connected bluetooth device in a service -


i want select , connect bluetooth device (serial communication) in activity , use same connection in service. service works in background , calculations , send string bluetooth connection arduino device every time location changed.

the service runs long desroy it.

i want know how can use same connection activity in service.


Comments

Popular posts from this blog

My HTML document is not linking to my CSS stylesheet properly -

php array slice every 2th rule -

node.js - Sending sockets to client side, Error: Converting circular structure to JSON -