语言

Menu
Sites
Language
Open E-Mail app with attachment

Hello,

I am not able to open system e-mail client with attached file using AppControl.

I tested the following example code:

https://developer.tizen.org/help/index.jsp?topic=%2Forg.tizen.native.appprogramming%2Fhtml%2Fguide%2Fapp%2Fappcontrol_browser.htm

and I doesnt't work.

The compose view opens, subject and body text fields are filled poprerly, but no attachment.

The file path is correct...

And ideas? I gave up...

 

Thanks in advance

Luke

 

编辑者为: Brock Boland 17 3月, 2014 原因: Paragraph tags added automatically from tizen_format_fix module.

响应

5 回复
john Smith
Hi, first check whether internet is working or not, After that try to execute the application.
Serhii Kolomiiets
Hi, men! Situation is tricky. Official sample at https://developer.tizen.org/help/index.jsp?topic=%2Forg.tizen.native.appprogramming%2Fhtml%2Fguide%2Fapp%2Fappcontrol_email.htm adds attachement, but it's size is ZERO. This file is from app local folder ( App::GetInstance()->GetAppRootPath() ) When adding from App::GetInstance()->GetMediaPath() all works correctly. So, Tizen BUG is when attaching local app file only!
get the files from shared/data folder .. not from local root or local data folder
Serhii Kolomiiets
Thanks for hint, Nour! I feel it must work, but on emulator I still have zero-sized attachement. Also, in IDE > Connection Explorer > ... > my_app_id > shared there is no available "data" folder with my temp file (it means permission denied). There are only "res" and "trusted" folders. Tried them with same zero effect. When run "sdb root on" then file is visible from IDE.... Seems like a Tizen BUG :(
I have used email app control to attach images successfully.. there is /shared/data folder with every new app under Tizen 2.2 I think you can create the folder by yourself. You can name anything like Temp folder or whatever.. Shared folder has permissions to access/read and write .. You cannot attach large file... there is limitation to the size