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;