[android-developers] Status Bar Notification
Hi,
-- Status bar notififcation is not showing up in Sony Xperia z with android version 4.2
Code
NotiCountValue= NotiCountValue + ncount;
NotificationManager mNotificationManager = (NotificationManager) context
.getSystemService(Context.NOTIFICATION_SERVICE);
CharSequence contentTitle = "FranConnect Mobile";
int icon = R.drawable.fcicon;
Notification notification = new Notification();
CharSequence contentText =NotiCountValue+ " Unread Notifications.";
Intent notifyIntent = new Intent(context,MainActivity.class);
notifyIntent.setClass(context, hybridlistactivity.class);
PendingIntent pendingintent =
PendingIntent.getActivity(context, 0,
notifyIntent, PendingIntent.FLAG_UPDATE_CURRENT | Notification.FLAG_AUTO_CANCEL);
notification.icon=icon;
notification.setLatestEventInfo(context, contentTitle, contentText, pendingintent);
mNotificationManager.notify(0, notification);
Please suggest
Thanks
RK
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home