tag:blogger.com,1999:blog-89878749563391212.post4219533706319964971..comments2024-03-25T17:53:11.127-07:00Comments on Android-er: Generate Notification using Notification.Builder for Android 3.0Unknownnoreply@blogger.comBlogger5125tag:blogger.com,1999:blog-89878749563391212.post-50611393849222979572015-10-31T02:01:08.182-07:002015-10-31T02:01:08.182-07:00This blog always make my project more easy, keep w...This blog always make my project more easy, keep writing, your blog most helpful.Anonymoushttps://www.blogger.com/profile/10281712172014385837noreply@blogger.comtag:blogger.com,1999:blog-89878749563391212.post-7314907988285956342015-08-03T23:56:04.515-07:002015-08-03T23:56:04.515-07:00Hello sir,
i would like to ask how do i input mul...Hello sir, <br />i would like to ask how do i input multiple alarm into the codes using pending intent.<br />Your tutorials have been most helpful.Aquileshttps://www.blogger.com/profile/09187556728782611718noreply@blogger.comtag:blogger.com,1999:blog-89878749563391212.post-31401500775476184942014-11-17T22:40:08.168-08:002014-11-17T22:40:08.168-08:00i have problem with this code
Notification nNotif...i have problem with this code<br /> Notification nNotify = new Notification.Builder(this)<br />the Builder always in red colour <br />can u help me..<br />i'm using the android studio Anonymoushttps://www.blogger.com/profile/11726652091717026761noreply@blogger.comtag:blogger.com,1999:blog-89878749563391212.post-53615395939488846462012-08-19T00:32:21.116-07:002012-08-19T00:32:21.116-07:00Hello Daniel Alvarado,
In my understanding, the P...Hello Daniel Alvarado,<br /><br />In my understanding, the PendingIntent structure is same.Erikhttps://www.blogger.com/profile/04983894331825656853noreply@blogger.comtag:blogger.com,1999:blog-89878749563391212.post-59234795263921909772012-08-18T14:10:50.753-07:002012-08-18T14:10:50.753-07:00Very useful guide, worked like a charm!
Quick qu...Very useful guide, worked like a charm! <br /><br />Quick question, if I wanted to put an Extra to the intent, would the PendingIntent structure change? <br /><br />Note: "incoming body" refers to the "OriginatingAdress" and is of the type String. <br /><br />Code here: <br /><br />private void buildNotification(Context context){ <br /> NotificationManager notificationManager = (NotificationManager)context<br /> .getSystemService(Context.NOTIFICATION_SERVICE); <br /> Notification.Builder builder = new Notification.Builder(context);<br /><br /> Intent intent = new Intent(context, SMSComposer.class);<br /> intent.putExtra("MESSAGE", incomingBody);<br /> PendingIntent pendingIntent = PendingIntent.getActivity(context, 0, intent, 0);<br /><br /> builder<br /> .setSmallIcon(R.drawable.ic_launcher)<br /> .setContentTitle(title)<br /> .setContentText(incomingBody)<br /> .setTicker(ticker + messageType)<br /> .setContentIntent(pendingIntent) <br /> .setAutoCancel(true);<br /><br /> Notification notification = builder.getNotification();<br /><br /> notificationManager.notify(R.drawable.ic_launcher, notification);<br /><br />} Anonymoushttps://www.blogger.com/profile/07402259157200663320noreply@blogger.com