Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hide time in Android notification without using custom layout

In the bottom right corner of a standard Android notification is time (eg 12:00). Can I hide it without using custom notification layout?

like image 734
fhucho Avatar asked Apr 22 '11 17:04

fhucho


People also ask

How do I turn off notification time on Android?

On your Android phone, go to Settings > Sounds and Vibration > Do not disturb. Here, look for Allow Exceptions, turn on Repeated Callers and select None for Calls from and Messages from. By doing this, your phone will not beep and buzz for any notifications -- even phone calls.


1 Answers

For API level 17 and onward, the above accepted answer by Erwan is correct.

For historical purposes, the answer below remains

It is possible to do that.

Try setting when to 0. For the few notifications that don't do that, it looks like thats what they do.

Here's the general API reference.

Here's a link to the ADB notification and search for private void updateAdbNotification()...

like image 200
Mike dg Avatar answered Sep 18 '22 18:09

Mike dg