A sample application that demonstrates how to create notifications via NotificationCompat API. This example is based on Android SDK guides, but i'm adding some refactors and making more easy to understand..
Android-simple-notification is hosted in the following web site
https://github.com/nRike/Android-simple-notification
If you think the Android project Android-simple-notification listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
The following table is the detailed list of Android-simple-notification.
Item | Value |
---|---|
Java File Count | 4 |
Supported screen sizes | [hdpi, xhdpi] |
Target SDK Version | 17 |
Minimum SDK Version | 8 |
Activity Count | 2 |
jar files used | android-support-v4.jar |
Required Permissions | android.permission.VIBRATE |
There are 4 image files in Android-simple-notification. The names of the image files are listed as follows.
ic_stat_dismiss.png ic_stat_notification.png ic_stat_snooze.png notification_icon.png
The following screenshort is generated from the image listed above.
Android-simple-notification has the following Java source files.
mx.androidtitlan.simplenotification.CommonConstants.java mx.androidtitlan.simplenotification.MainActivity.java mx.androidtitlan.simplenotification.NotificationService.java mx.androidtitlan.simplenotification.ResultActivity.java