简体   繁体   中英

application with bluetooth in a lot activity

I have an application with many activities and I need to add bluetooth support. I have no idea how to go about it. Do it with service or not. Bluetooth for one activity is not a problem, but I do not know how to continue connecting in the next activity without reconnecting. Could someone help me?

Try using the BluetoothSPP library. It will save you a lot of headache.

https://github.com/akexorcist/Android-BluetoothSPPLibrary

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM