public SmsMmsMessage(Context _context,long _messageId,long _threadId,long _timestamp,String _messageBody,int _unreadCount,int _messageType){
  context=_context;
  messageId=_messageId;
  threadId=_threadId;
  timestamp=_timestamp;
  messageBody=_messageBody;
  unreadCount=_unreadCount;
  messageType=_messageType;
  fromAddress=SmsPopupUtils.getMmsAddress(context,messageId);
  fromEmailGateway=false;
  contactName=PhoneNumberUtils.formatNumber(fromAddress);
  ContactIdentification contactIdentify=SmsPopupUtils.getPersonIdFromPhoneNumber(context,fromAddress);
  if (contactIdentify == null) {
    contactIdentify=SmsPopupUtils.getPersonIdFromEmail(context,fromAddress);
    if (contactIdentify != null) {
      fromEmailGateway=true;
    }
  }
  if (contactIdentify != null) {
    contactId=contactIdentify.contactId;
    contactLookupKey=contactIdentify.contactLookup;
    contactName=contactIdentify.contactName;
  }
}

public SmsMmsMessage ( Context _context , long _messageId , long _threadId , long _timestamp , String _messageBody , int _unreadCount , int _messageType ) { context = _context ; messageId = _messageId ; threadId = _threadId ; timestamp = _timestamp ; messageBody = _messageBody ; unreadCount = _unreadCount ; messageType = _messageType ; fromAddress = SmsPopupUtils . getMmsAddress ( context , messageId ) ; fromEmailGateway = false ; contactName = PhoneNumberUtils . formatNumber ( fromAddress ) ; ContactIdentification contactIdentify = SmsPopupUtils . getPersonIdFromPhoneNumber ( context , fromAddress ) ; if ( contactIdentify == null ) { contactIdentify = SmsPopupUtils . getPersonIdFromEmail ( context , fromAddress ) ; if ( contactIdentify != null ) { fromEmailGateway = true ; } } if ( contactIdentify != null ) { contactId = contactIdentify . contactId ; contactLookupKey = contactIdentify . contactLookup ; contactName = contactIdentify . contactName ; } }
construct smsmmsmessage for getmmsdetails ( ) - fetched from the mms database table
