简体   繁体   English

Android 用于蓝牙连接的前台服务

[英]Android foreground service for Bluetooth Connection

Good morning,早上好,

I'm developing Android app, which track user heart rate.我正在开发跟踪用户心率的 Android 应用程序。 So i have a question, will be good way and practice to use the foreground serive if the application needs to connect to the watch via bluetooth and then track the users heart rate all the time even if the application goes to the background or user open music player?所以我有一个问题,如果应用程序需要通过蓝牙连接到手表然后一直跟踪用户心率,即使应用程序进入后台或用户打开音乐,这将是使用前台服务的好方法和练习玩家?

Thank you in advance for your answer预先感谢您的回答

Yes, that's the point of foreground service是的,这就是前台服务的重点

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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