I see some apps which place an icon in the notification bar on my device. how do i do that with my app ?
Use the NotificationManager class.
http://developer.android.com/guide/appendix/faq/commontasks.html