Hi,

I have modified ContextImpl for personal purpose, and a notifUser()
method has been added, launched in a particular case that does not
matter here. This method contains a piece of code to launch a notif:

                        String ns = Context.NOTIFICATION_SERVICE;
                        NotificationManager mNotificationManager =
(NotificationManager)
getSystemService(ns);
                        int icon = R.drawable.ic_dialog_alert;
                        CharSequence tickerText = "Privacy Issue";
                        long when = System.currentTimeMillis();
                        Notification notification = new
Notification(icon, tickerText,
when);
                        Context context = getApplicationContext();
                        CharSequence contentTitle = "Privacy issue";
                        Intent notificationIntent = new Intent(this,
ContextImpl.class);
                        PendingIntent contentIntent =
PendingIntent.getActivity(this, 0,
notificationIntent, 0);
                        notification.setLatestEventInfo(context,
contentTitle, contentText,
contentIntent);
                        final int HELLO_ID = 10;

                        mNotificationManager.notify(HELLO_ID,
notification);

The problem is, the message is truncated in the notification due to
its length. I was wondering how can I make a line break in this
notification? "\n" is not working. Or maybe, how can I put an activity
to launch a toast when notification is clicked, in the notification
intent. I tried to call an activity from an upper layer, but this is
not working, activity cannot be found (which I understand because I am
in a lower layer).

Best regards,

guillaume

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting

Reply via email to