简体   繁体   English

Android系统UI状态栏如何显示秒数?

[英]How to show seconds in the Android system UI status bar?

When I receive a bug report and a screen recording from QA, it's very hard to pinpoint the interesting part in the logcat with a one minute imprecision.当我从 QA 收到错误报告和屏幕录像时,很难用一分钟的不精确性来确定 logcat 中有趣的部分。

How to display the clock as hh:mm:ss in the status bar?如何在状态栏中将时钟显示为 hh:mm:ss?

This worked for me on ADB:这在亚行对我有用:

adb shell settings put secure clock_seconds 1

To change it back use:要改回使用:

adb shell settings put secure clock_seconds null

or要么

adb shell settings put secure clock_seconds 0

null just means the system default. null只是表示系统默认值。

The utility is not accessible in the UI, but still exists in android!该实用程序在 UI 中无法访问,但在 android 中仍然存在!

  1. Start System UI Tuner启动系统 UI 调谐器
    adb root adb shell pm enable com.android.systemui/.tuner.TunerActivity adb shell am start -n com.android.systemui/.tuner.TunerActivity
  2. Select Status bar Select状态栏
  3. Select Time (penultimate item) Select时间(倒数第二项)
  4. Select Show hours, minutes and seconds Select显示小时、分钟和秒

I just fixed this;我刚刚解决了这个问题; people on androidforum were talking about System UI Tuner, so I went to the play store, typed that in, and d/l'd "system ui tuner shortcut". androidforum 上的人都在谈论 System UI Tuner,所以我去了 Play 商店,输入了那个,然后 d/l'd “system UI Tuner Shorter”。

Surely the adb solution will work too but this was quicker for me right now: ,) Then status bar, time.当然 adb 解决方案也可以工作,但现在这对我来说更快:,) 然后状态栏,时间。 etc. like user rds said.等等,就像用户 rds 说的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM