언어 설정

Menu
Sites
Language
Attach image when navigate to Email Application using DataAppControl

Hi All,

 

Currently, I can use AppControl for Web API Tizen to call the email application which includes subject, text, account but when i attach the images the Email application show the error "The app has closed unexpectly" and close. Anyone can help me on that?

 

Regards,

James

Edited by: Brock Boland on 17 3월, 2014 Reason: Paragraph tags added automatically from tizen_format_fix module.

Responses

3 댓글
Raghavendra Reddy Shiva
Seems like there are issues with attaching files using Tizen message API. Below JIRA bug was reported for the same issue. Please post your comments in the JIRA and also logs for further analysis on this issue. https://bugs.tizen.org/jira/browse/TDIST-297
James Vo
Thanks for your response Raghavendra Reddy Shiva. Looking forward to hearing a good news from Tizen Devs.
Alexander AVSukhov

Hello,

Use following code:
var appControl = new tizen.ApplicationControl("http://tizen.org/appcontrol/operation/compose", null, "image/jpeg", null,
[new tizen.ApplicationControlData("http://tizen.org/appcontrol/data/text", ["text"]),
new tizen.ApplicationControlData("http://tizen.org/appcontrol/data/path",["/opt/usr/media/Images/image1.jpg", null])]);

It is because of the Ref-email app's policy for handling the data.
The difference is that there is one more element on the data array.
The Ref-message app only can handle the data for 'path' key as array.
But webapi let the data array whose length is 1 be stripped from array.
So app developer need to insert an terminal empty element in order to pass the array value as original shape.