Android - Push Notification Tutorial
A notification is a message you can display to the user outside of your application's normal UI. You can create your own notifications in android very easily. Android provides NotificationManager class for this purpose. In order to use this class, you need to instantiate an object of this class by requesting the android system through getSystemService() method . Its syntax is given below − NotificationManager NM ; NM =( NotificationManager ) getSystemService ( Context . NOTIFICATION_SERVICE ); After that you will create Notification through Notification class and specify its attributes such as icon,title and time e.t.c. Its syntax is given below − Notification notify = new Notification ( android . R . drawable . stat_notify_more , title , System . currentTimeMillis ()); The next thing you need to do is to create a PendingIntent by passing context and intent as a parameter. By giving a PendingIntent to another application, you are g...