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

c++ - How to add Crypto++ library to Qt project -

jQuery Mobile app not scrolling in Firefox -

How to use vim as editor in Matlab GUI -