Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经可以检测到 Android 手机何时拨打或接听电话,但我还想知道是否正在使用蓝牙耳机进行通话和/或是否正在使用手机的扬声器进行通话。我环顾四周,但我没有看到任何可以做到这一点的东西。这可能吗?
我认为您可以使用 AudioManager 的 isBluetoothScoOn(),它应该可以正常工作。