开发者

Set timeout for receiving a broadcast

开发者 https://www.devze.com 2023-04-01 14:42 出处:网络
I want to play some sounds via bluetooth and therefore I\'m using the audioManager.startBluetoothSco() method. This will (eventually) give out a Broadcast telling me, that everything is ready.

I want to play some sounds via bluetooth and therefore I'm using the audioManager.startBluetoothSco() method. This will (eventually) give out a Broadcast telling me, that everything is ready. However, if this is not the case, I need a timeout. How do I do that? With System开发者_StackOverflowClock.sleep? Can you help me with that?


You can use a timer. Here is a tutorial for using it.

0

精彩评论

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