@@ -0,0 +1,1702 @@
+/*%0A * Derived from com.android.mms/src/com/android/mms/ui/MessageUtils.java%0A * (tag android-4.4_r1.2.0.1)%0A */%0A%0Apackage ca.bmaupin.merge.sms.ui;%0A%0Aimport android.content.Context;%0Aimport android.text.format.DateUtils;%0Aimport android.text.format.Time;%0A%0Apublic class MessageUtils %7B%0A    public static String formatTimeStampString(Context context, long when, boolean fullFormat) %7B%0A        Time then = new Time();%0A        then.set(when);%0A        Time now = new Time();%0A        now.setToNow();%0A%0A        // Basic settings for formatDateTime() we want for all cases.%0A        int format_flags = DateUtils.FORMAT_NO_NOON_MIDNIGHT %7C%0A                           DateUtils.FORMAT_ABBREV_ALL %7C%0A                           DateUtils.FORMAT_CAP_AMPM;%0A%0A        // If the message is from a different year, show the date and year.%0A        if (then.year != now.year) %7B%0A            format_flags %7C= DateUtils.FORMAT_SHOW_YEAR %7C DateUtils.FORMAT_SHOW_DATE;%0A        %7D else if (then.yearDay != now.yearDay) %7B%0A            // If it is from a different day than today, show only the date.%0A            format_flags %7C= DateUtils.FORMAT_SHOW_DATE;%0A        %7D else %7B%0A            // Otherwise, if the message is from today, show the time.%0A            format_flags %7C= DateUtils.FORMAT_SHOW_TIME;%0A        %7D%0A%0A        // If the caller has asked for full details, make sure to show the date%0A        // and time no matter what we've determined above (but still make showing%0A        // the year only happen if it is a different year from today).%0A        if (fullFormat) %7B%0A            format_flags %7C= (DateUtils.FORMAT_SHOW_DATE %7C DateUtils.FORMAT_SHOW_TIME);%0A        %7D%0A%0A        return DateUtils.formatDateTime(context, when, format_flags);%0A    %7D%0A%7D%0A

Add MessageUtils.java