In Android (on JB), how can I add an action to a custom rich notification?

Posted by user496854 on Stack Overflow See other posts from Stack Overflow or by user496854
Published on 2012-09-03T11:42:04Z Indexed on 2012/09/20 21:38 UTC
Read the original article Hit count: 402

Filed under:
|
|

I've been playing with the new rich notificaitons in Jelly Bean, and everything works as expected when I set up a new notificaiton using the templates Notification.BigPictureStyle, Notification.BigTextStyle, or Notification.InboxStyle. I can use the Notification.Builder.addAction() method, and the action buttons show up at the bottom of the extended notification. But when I try to create a cutsom notification using Notification.bigContentView, the action buttons never show up.

Just to clarify, if I never set bigContentView, the buttons do show up. But as soon as that field is set to a custom RemoteViews object, the buttons are gone.

Does anyone have any ideas on why this is happening?

© Stack Overflow or respective owner

Related posts about android

Related posts about notifications