Read Bt attachment problem in 3rd edition phone
| Wed, 2006-03-01 11:27 | |
|
I use AttachmentManagerL to query filename of attachment, and the code is shown as below. It works for getting MMS attachment. However, if the message type is KUidMsgTypeBt, it cases KERN-EXEC 3 when calling ReadStoreL, what wrong in the code? Besdies, I also found that if message type is KUidMsgTypeBt, entry->Entry().Attachment() will return EFalse. Why???
I worry CMsvStore not support for Bt message and cannot get the attachment by message store, then I need to apply AllFiles permission to read the attachment by file path ![]() CMsvEntry* inboxContext = iMsvSession->GetEntryL( KMsvGlobalInBoxIndexEntryId ); CleanupStack::PushL( inboxContext ); CMsvEntrySelection* entries = inboxContext->ChildrenL(); CleanupStack::PushL( entries ); for (TInt i=0; i<entries->Count(); i++) { Â CMsvEntry* entry = iMsvSession->GetEntryL((*entries)[i]); Â CleanupStack::PushL(entry); Â CMsvStore* inboxStore=NULL; Â inboxStore = entry->ReadStoreL(); Â CleanupStack::PushL(inboxStore); Â for (TInt k=0;k<inboxStore->AttachmentManagerL().AttachmentCount();k++) { Â Â CMsvAttachment* att =inboxStore->AttachmentManagerL().GetAttachmentInfoL(k); Â Â fileArray->AppendL(att->AttachmentName()); Â Â delete att; Â } Â CleanupStack::PopAndDestroy(inboxStore); Â CleanupStack::PopAndDestroy(entry); } CleanupStack::PopAndDestroy(2,inboxContext); |
|







Forum posts: 24
Is it mean that cannot use message store to get the attachment from Bt message? Direct read the Bt message attached from mail folder is the only method? If yes, it cause the AllFiles permission problem in 3rd edition phone.
Anyone has comment?
Forum posts: 71
whade
to send the answer, it help me to read attachments.
JKS
Forum posts: 63