Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid Notification without click event?
    primarykey
    data
    text
    <p>I would like to try and make a Notification that does not respond to a click. Is this possible? i.e. when it is visible in the Notification area, and the user touches it, I want "nothing" to happen.</p> <p>This is different to a normal Notification - when it is visible, and the user touches it, the Notification Area hides, and the Intent is launched. I do not want the Notification Area to hide when it is touched.</p> <hr> <p>I can make one that doesn't launch an activity:</p> <ul> <li><a href="https://stackoverflow.com/questions/3779571/possible-to-make-an-android-notification-that-does-not-call-an-intent">Possible to make an Android Notification that does not call an Intent?</a></li> <li><a href="https://stackoverflow.com/questions/7040742/android-notification-manager-having-a-notification-without-an-intent">Android - notification manager, having a notification without an intent</a></li> </ul> <p>But it still responds to a click, by hiding the notification bar again (i.e. standard expected behaviour).</p> <hr> <p>This question is a duplicate of <a href="https://stackoverflow.com/questions/6805935/how-to-disable-a-click-event-of-notification-in-android-development">How to disable a click event of notification in android development</a> but that question does not have an answer. (if there is a better way to ~bump~ that question up again, I will do that &amp; delete this question)</p> <hr> <p>Note: I know this is not "the Android way", but it is still something I would like to try.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload