[android-developers] Re: Remove time field of notification shown in the expanded status bar

2009-02-19 Thread elvisw

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  wrote:
> On Feb 19, 4:13 am, elvisw  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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Remove time field of notification shown in the expanded status bar

2009-02-19 Thread Jon Colverson

On Feb 19, 4:13 am, elvisw  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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---