Android : how to show full message with android notification

on Friday, December 5, 2014


i want to showing full message with android notification but my code just shows part of the message (just in a one row): my sample code is :



NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(context)
.setSmallIcon(R.drawable.iconnotify)
.setContentTitle("New Message")
.setContentText("Automatic Target Mode: using existing emulator emulator-5554 running compatible AVD test4")
.setAutoCancel(true)
.setTicker("Automatic Target Mode: using existing emulator emulator-5554 running compatible AVD test4");
final int notificationId = 1;
NotificationManager nm = (NotificationManager) context
.getSystemService(Context.NOTIFICATION_SERVICE);
nm.notify(notificationId, mBuilder.build());


now resuslt enter image description here


The main objective enter image description here


0 comments:

Post a Comment