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のクロスデバイスハードボタンはありますか?
ありがとう
いいえ。カメラまたはメディアボタンを監視するように設定できBroadcastReceiverますが、これらは常に使用できるわけではありません。一部のデバイスにはカメラボタンがなく、メディアボタンは有線ヘッドセットで使用するためのものです。
BroadcastReceiver
ごめん!