https://github.com/dmfs/notification-wrapper
A convinient wrapper for android.app.Notification
https://github.com/dmfs/notification-wrapper
Last synced: 13 days ago
JSON representation
A convinient wrapper for android.app.Notification
- Host: GitHub
- URL: https://github.com/dmfs/notification-wrapper
- Owner: dmfs
- License: gpl-3.0
- Created: 2012-05-09T14:15:50.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2012-05-09T15:49:57.000Z (about 14 years ago)
- Last Synced: 2025-10-28T01:54:02.909Z (9 months ago)
- Language: Java
- Size: 99.6 KB
- Stars: 0
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# notification-wrapper
__A convenient wrapper for android.app.Notification__
This is a convenient helper to show notifications in Android.
## Requirements
This package depends on the Android SDK.
## Examples
To show just a simple notification text call (from an Activity):
new NotificationWrapper(this, "some text").update();
You can set an Intent to launch when the notification is opened:
Intent someIntent = new Intent(...);
...
new NotificationWrapper(this, "some text").setIntent(someIntent).update();
## TODO
* Add all missing Notification features (i.e. LEDs, sounds, vibrate ...)
## License
Copyright (c) Marten Gajda 2012, licensed under GPL version 2 or newer (see `LICENSE`).