Can't find notication's extra value
<p>I pass value to notification like this. I want to get username and message in ChatGroup activity. The problem is username and msg always null.</p>

<pre><code>private void showNotificationChatGroup(final String username, final String msg, final String groupChatName) {       
    final String title = username + ": "
            + ((msg.length() &lt; 5) ? msg : msg.substring(0, 5) + "...");
    final Notification notification = new Notification(
            R.drawable.stat_sample, title, System.currentTimeMillis());

    final Intent i = new Intent(this, ChatGroup.class);
    i.putExtra(Constant.CHAT_GROUP_USERNAME, username);
    i.putExtra(Constant.CHAT_GROUP_MESSAGE, msg);

    final PendingIntent contentIntent = PendingIntent.getActivity(this, 0,
            i, 0);

    notification.setLatestEventInfo(this, "New message in chat group \"" + groupChatName + "\"",
            msg, contentIntent);

    mNM.notify((username + msg).hashCode(), notification);
}
</code></pre>

<p>ChatGroup activity's onCreate():</p>

<pre><code>    // When clicking notification.
    final Bundle extras = getIntent().getExtras();
    if(extras != null) {
        final String friendUsername = extras.getString(Constant.CHAT_GROUP_USERNAME);
        final String msg = extras.getString(Constant.CHAT_GROUP_MESSAGE);
        Log.d("HieuND", "friendUsername from extra: " + friendUsername);
        Log.d("HieuND", "Message from extra: " + msg);

        if (msg != null) 
        {
            this.appendToMessageHistory(friendUsername, msg);
            ((NotificationManager)getSystemService(NOTIFICATION_SERVICE)).cancel((friendUsername + msg).hashCode());
        }
    }
</code></pre>
