开发者

Set timeout for receiving a broadcast

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜