cant open sms conversation wid incoming number
<p>hey guys check out my code...</p>

<p>whenever a text comes and i click on the notification ,,, the person or number with whom i exchanged texts earlier...that conversation appears and it doesnot opens the conversation with the new number .... how can i solve it...?</p>

<p>int icon = R.drawable.messageicon;</p>

<pre><code>                CharSequence tickerText = from + ": " + body;
                long when = System.currentTimeMillis();

                    Notification notification = new Notification(icon,
                            tickerText, when);
                    CharSequence contentTitle = from;
                    CharSequence contentText = body;
                    // Intent notificationIntent = new
                    // Intent(context,SMS.class);
                    /* Show the Notification containing the Message. */

                    notificationIntent
                            .addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);

                    notificationIntent.putExtra("address",
                            messages[i].getOriginatingAddress());
                    notificationIntent.setType("vnd.android-dir/mms-sms");
                    PendingIntent contentIntent = PendingIntent
                            .getActivity(context, 0, notificationIntent, 0);

                    notification.setLatestEventInfo(context, contentTitle,
                            contentText, contentIntent);
                    notification.defaults=Notification.DEFAULT_ALL;
                    notification.flags |= Notification.FLAG_AUTO_CANCEL;

                    nm.notify(1, notification);

            }
</code></pre>
