I have searched and everything is about launching an activity not a dialog.
What I want to do is to display a notification in the status bar, and when the user presses it a dialog pops up on top of whatever the user was viewing before s/he clicked the notification. I dont want the dialog to show on top of the main activity or the recent apps list.
Also, how can i launch the dialog from long pressing the search button?
Thanks!