In my android project I need to show the notification when the certain event has occurred. In my application, I have a service which starts at boot completion. And this Service starts the background threads. These threads raises the event. Now the requirement is, when the event occurred , i want to show the notification in the middle of the screen.this notification is similar to the dialog box with single button. The notification screen exist until the user clicked on the button,means when the user clicked on the button,the screen will disappear.I don't know how the create the notification in the middle of the screen.
Any help will be appreciated..