Notifications -Toast, Dialogs,Statusbar Notifications


 Notifications:
toast notification
statusbar notification
dialogboxes

Adding sound
notification.defaults|=Notification.DEFAULT_SOUND;


Adding Vibration:

notification.defauls|=Notification.DEFAULT_VIBRATE;

adding flash lights:
notification.defauls|=Notification.DEFAULT_LIGHTS;


dialog is small window on the screen. when dialog is executed the activity losses its focus and dialog gets total control of app.

android.app. dialog package


alert dialog
progress dialog
date picker dialog
time picker dialog


alert dialog: it is a small window. it contains 0,1,2 or 3 buttons combination.It contains max 3 buttons like +ve ,-ve, neutral buttons.



Progress  Dialog:

its an extension of alert dialog class that can display progress animation in the form of spinning wheel.











Comments

Popular posts from this blog

What is Android ?