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 中没有看到任何可以这样做的东西。如果可能的话,我猜这是特定于硬件的。
Yea sure there is a way...
android.provider.Settings.System.putInt(getContentResolver(), "notification_light_pulse", 1);
1 - indicate on state 0 - indicate off state
除了类之外,我还没有看到任何用于处理 LED 的 API Notification。
Notification
为大型数据集构建 UI。理想的情况是有一个固定高度的表格,该表格可滚动以容纳 200 多行数据。一个好处是使用 JQuery UI 使用户能够拖动表格的高度以显示更多或更少的行。
到目前为止我所拥有的 JSFiddle:http: //jsfiddle.net/jonbrownm/j5