开发者

Connect via Bluetooth every 20 minutes

开发者 https://www.devze.com 2023-02-04 22:54 出处:网络
Is there a way to make an android app where: When the phone is idle, the phone wakes up for a minute, connects to a bluetooth device,开发者_高级运维 receives/sends information to the device, processes

Is there a way to make an android app where: When the phone is idle, the phone wakes up for a minute, connects to a bluetooth device,开发者_高级运维 receives/sends information to the device, processes some information and then goes back to idle mode (both cpu and the bluetooth radio shuts off), repeating this process every 20 mins?


It sounds like you may require the functionality in AlarmManager. Also, refer to this question here on SO for some example code: Android: How to use AlarmManager.

0

精彩评论

暂无评论...
验证码 换一张
取 消