Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
Locked
0

How to add an image to an Email

Engaged ,
Jan 06, 2011 Jan 06, 2011

How would I add an image to an email?

TOPICS
Development
715
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jan 07, 2011 Jan 07, 2011

I don't think there is any specific API available for the purpose. You can try providing image content in mail body while launching it  via navigateToURL() api in AIR.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Jan 07, 2011 Jan 07, 2011
LATEST

Is it possible to access the Intent API through AIR?

Update: Just read this response where the Intent API is not supported http://forums.adobe.com/message/3387060#3387060.

Android Code:

Intent picMessageIntent = new Intent(android.content.Intent.ACTION_SEND);
picMessageIntent.setType("image/jpeg");

File downloadedPic =  new File(
    Environment.getExternalStoragePublicDirectory(
    Environment.DIRECTORY_DOWNLOADS),
    "q.jpeg");

picMessageIntent.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(downloadedPic));

startActivity(Intent.createChooser(picMessageIntent, "Send your picture using:"));

Taken from:

http://mobile.tutsplus.com/tutorials/android/android-sdk-sending-pictures-the-easy-way/

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines