This blog is providing many quizzes,IQ tests,articles,short stories,jokes etc., where you can have fun and get updated your database knowledge.
Thursday, 22 September 2011
How to create Status Bar Notification in Android
A status bar notification is a nice way to alert the user about some update from your application, when running in background, specially when you require a response from the user for the same. It adds an icon to the system's status bar along with an optional ticker-text message and an expanded message in the Notifications window. When the user selects the expanded notification message, Android fires an Intent that is defined by the notification which is usually used to launch an Activity. In this article, I will show you how we can implement this notification system in our application.
To demonstrate how to use status bar notification we will create a layout which will have a textview and button. The button will be used to launch the status bar notification. Create a new Android project with the following properties:
No comments:
Post a Comment