AIM : Notification in Android.
SOLUTION
int NOTIFICATION_ID=1;
NotificationManager mManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
Notification notification = new Notification(R.drawable.icon,"Notify", System.currentTimeMillis());
notification.setLatestEventInfo(getApplicationContext(), "Title", "Description", null);
mManager.notify(NOTIFICATION_ID, notification);;
To cancel the same notification,call
mManager.cancel(NOTIFICATION_ID);
Tuesday, September 7, 2010
Subscribe to:
Post Comments (Atom)
Android Developers Blog
- The Third Beta of Android 16 - 3/13/2025
- #TheAndroidShow: Multimodal for Gemini in Android Studio, news for gaming devs, the latest devices at MWC, XR and more! - 3/13/2025
- Multimodal image attachment is now available for Gemini in Android Studio - 3/13/2025
- Building excellent games with better graphics and performance - 3/13/2025
- Making Google Play the best place to grow PC games - 3/13/2025
No comments:
Post a Comment