Android - Buttons supported in notification expanded view? -
i trying buttons work in notification expanded view. goal use buttons launch activities notification view. supported? here simple outline irrelevant details omitted:
- create remoteview object using layout imagebuttons.
- create pending intent each button , set them using remoteview.setonclickpendingintent(...)
- create notification object , set it's contentview remoteview created in step 1.
- set notification object's contentintent.
- send notification.
this works beautifully on droid x. can click on each button , launch it's associated activity successfully.
this works on pal's evo 4g well, except launches button's intent plus notification's content intent. 2 intents launched. can deal that.
this works on htc incredible.
unfortunately, doesn't work on other phones: vibrant, hero, vision, wildfire, milestone, droid 1. these ones know far based on user feedback. on these phones, notification contentintent being launched. appears button's click events aren't being captured/detected.
i @ wit's end trying work around this. beginning think it's impossible, works on phones! suggestion/help appreciated.
thanks!
i know it's on year since posted found similar question: how add button notification?
Comments
Post a Comment