Attaching image as email attachment for Android Platform using open Email API

This thread was migrated from an old forum. It may contain information that are no longer valid. For further assistance, please post a new question or open a support ticket from the Customer Support portal.

#[Informational Post]​

Generally,in Android ,files sharing from one app with another app happens in the form of content URI. So,you need to make your app generate the content URIs of files that you want to share with other apps.

When invoking the kony.phone.openEmail function from an Android app,in the attachment parameter,you can directly pass rawbytes received only from the kony.camera(onlypublicaccess mode)and kony.phone.openMediaGallery APIs.Because,the rawbytes received from these sources already contain contentURI.

How to implement this please go through the doc link.

http://docs.kony.com/konylibrary/visualizer/viz_api_dev_guide/Default.htm#sharefilesandroid.htm

For more info please go through the attached sample app.

Thanks​ for sharing this valuable info!

Hi,

Thanks for sharing the info, but in documentation @ http://docs.kony.com/konylibrary/visualizer/viz_api_dev_guide/Default.htm#sharefilesandroid.htm

it is mentioned that append the .fileprovider string to the package name which is not correct.

Documentation is now updated. Thanks @Tim Gwvhvm​