Android Question Tap Notification = Do nothing

gravel

Member
Licensed User
Longtime User
I've a BigText notification with action buttons. The notification shows status reports and has action buttons 'clear all' to clear all outstanding reports and cancel the notification, and 'view next' to clear the current status report and show the next.

The reports are generally 3 lines but may be up to 6, so the action butttons can occasionally change screen position.

I don't want a tap on the notification itself to do anything as that would be irritating if the user were clicking through the status reports and tapped the notification by mistake.

Without a setActivity a tap is closing the notification drawer.

Is there a way I can get it to do absolutely nothing?

I tried setActivity Null but that doesn't do it.
 

An Schi

Well-Known Member
Licensed User
Maybe open a fully transparent activity and immediately close it again.
(Not tested, just thinking loud...)
 
Upvote 0

gravel

Member
Licensed User
Longtime User
Thanks Erel, I did suspect that would be the case. I'll have a look at a custom layout.

Thanks An Schi, thinking out loud is useful. I'll have a look at that as well.

In the end it may not be worth the trouble and I'll end up saying "Android default behaviour". :)
 
Upvote 0
Top