Hi,
the creation of SMS successes if using the default auto-created SMIL file, but fails if using the SMIL that is created by myself. when the created SMS is opened, a message says: some objects cannot be shown normally.
Here is the SMIL file:
<smil xmlns="http://www.w3.org/2000/SMIL20/CR/Language">
<head>
<layout>
<root-layout width="176" height="208" />
<region id="Summary" width="160" height="52" left="0" top="0" fit="meet" />
<region id="Image" width="160" height="104" left="0" top="52" fit="meet" />
<region id="Content" width="160" height="52" left="0" top="156" fit="scroll" />
</layout>
</head>
<body>
<seq>
<par dur="30000ms">
<text src="title0.txt" region="Summary" />
<img src="picture0.gif" region="Image" />
<text src="summary0.txt" region="Content" />
</par>
<par dur="30000ms">
<text src="title1.txt" region="Summary" />
<img src="picture1.gif" region="Image" />
<text src="summary1.txt" region="Content" />
</par>
<par dur="30000ms">
<text src="title2.txt" region="Summary" />
<img src="picture2.gif" region="Image" />
<text src="summary2.txt" region="Content" />
</par>
<par dur="30000ms">
<text src="title3.txt" region="Summary" />
<img src="picture3.gif" region="Image" />
<text src="summary3.txt" region="Content" />
</par>
<par dur="30000ms">
<text src="title4.txt" region="Summary" />
<img src="picture4.gif" region="Image" />
<text src="summary4.txt" region="Content" />
</par>
</seq>
and the code to add the SMIL file:
TFileName attachmentFile(InstallPath());
attachmentFile.Append(KTmpMmsFolder);
attachmentFile.Append(KMmsDataSmilName);

//open attachment file
RFile attachment;
TInt error = attachment.Open( fsSession, attachmentFile, EFileShareReadersOnly | EFileRead );
CleanupClosePushL( attachment );
if(error == KErrNone)
{
//mime header
CMsvMimeHeaders* mimeHeaders = CMsvMimeHeaders::NewL();
CleanupStack::PushL( mimeHeaders );
mimeHeaders->SetSuggestedFilenameL(KMmsDataSmilName);

// Represents a single attachment and information about the attachment
CMsvAttachment* attaInfo =
CMsvAttachment::NewL( CMsvAttachment::EMsvFile );
CleanupStack::PushL( attaInfo );

//Mime Type
_LIT8(KMimeType, "application/smil");
TBufC8<20> mimeType(KMimeType);

TMsvAttachmentId attachId = KMsvNullIndexEntryId;

//Attachment file must be an public folder (e.g. c:\Data\images)
iMmsMtm->CreateAttachment2L(
*store,
attachment,
mimeType,
*mimeHeaders,
attaInfo,
attachId );

CleanupStack::Pop( attaInfo ); // attaInfo
CleanupStack::PopAndDestroy(mimeHeaders); // mimeHeaders

iMmsMtm->SetMessageRootL(attachId);
}
CleanupStack::PopAndDestroy(1); // attachment


store->CommitL();
CleanupStack::PopAndDestroy(2); //store and fsSession

iMmsMtm->SaveMessageL();