I found that the sequence of code does matter.

1) TextView of time would be shown, if the sequence:
notification.setLatestEventInfo(context, title, message,
pendingIntent);
notification.when = 0;

2) TextView of time would not be shown, if the sequence:
notification.when = 0;
notification.setLatestEventInfo(context, title, message,
pendingIntent);



On Feb 19, 9:12 pm, Jon Colverson <[email protected]> wrote:
> On Feb 19, 4:13 am, elvisw <[email protected]> wrote:
>
> >     The notification in the expanded status bar has time field.
> >     How can I set the "time" invisible or remove it??
>
> If you use a RemoteView then you can put whatever you want in the
> notification:http://developer.android.com/reference/android/widget/RemoteViews.html
>
> --
> Jon
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to