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デバイスでLEDインジケーターライトをプログラムで無効および有効にすることは可能ですか?通知のようにオンとオフを切り替えるだけではありません。私はそうするであろうAPIに何も見ませんでした。可能であれば、これはハードウェア固有のものだと思います。
確かに方法はあります...
android.provider.Settings.System.putInt(getContentResolver()、 "notification_light_pulse"、1);
1-オン状態を示します0-オフ状態を示します
Notificationクラス以外のLEDを処理するためのAPIは見たことがありません。
Notification