PendingIntent contentIntent = PendingIntent. Intent notificationIntent = new Intent(this, M圜lass.class) Notification notification = new Notification(icon, tickerText, when) ĭefine the notification’s message and PendingIntent: Context context = getApplicationContext() ĬharSequence contentTitle = "My notification" ĬharSequence contentText = "Hello World!" WhatsApp is free and offers simple, secure, reliable messaging and calling, available on phones all over the world. Instantiate the Notification: int icon = R.drawable.notification_icon WhatsApp Messenger: More than 2 billion people in over 180 countries use WhatsApp to stay in touch with friends and family, anytime and anywhere. MNotificationManager=(NotificationManager)getSystemService(ns) NotificationManager mNotificationManager Get a reference to the NotificationManager: String ns = Context.NOTIFICATION_SERVICE Go through the following steps generate Code for Status Bar in Android Application Development. In this post, we share the code for Code for Status Bar in Android Application Development. To provides the flexibility and catch all the running processes in the android operating system, status bar provides the vital role in the android application. To know all the information about the process running over the android operating system, it is important to get the user friendly status bar.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |