The calendar and contact attachments cannot coexist with other attachments when editing MMs for android.

Source: Internet
Author: User

The calendar and contact attachments cannot coexist with other attachments when editing MMs for android.
Modify the MmsAttachmentEnhanceImpl. java file to be consistent with Op01MmsAttachmentEnhanceExt. java.


Public boolean isSupportAttachmentEnhance (){
Return true; // change to true
}

Public void setAttachmentName (TextView text, int size ){
If (size> 1 ){
Text. setText (getString (R. string. multi_files); // display strings of multiple external attachments in folder mode. You need to define this string.
}
}

Public void setSaveAttachIntent (Intent I, int smode ){
If (smode = MMS_SAVE_OTHER_ATTACHMENT |
Smode = MMS_SAVE_ALL_ATTACHMENT ){
Bundle data = new Bundle ();
Data. putInt (MMS_SAVE_MODE, smode );
I. putExtras (data );
}
}

// Get save attachment mode through intent
Public int getSaveAttachMode (Intent I ){
Int smode =-1;
Bundle data = I. getExtras ();
If (data! = Null ){
Smode = data. getInt (MMS_SAVE_MODE );
}
Return smode;
}

KK2 and later versions:
Modify the DefaultMmsAttachmentEnhanceExt. java file to be consistent with Op01MmsAttachmentEnhanceExt. java.
Add the following content in the isFeatureEnabled method of DefaultMmsFeatureManagerExt. java.
Case MMS_ATTACH_ENHANCE:
Return true;

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.