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

How to send an SMS with text and image

Engaged ,
Jan 06, 2011 Jan 06, 2011

I'm trying to add a photo and text to an SMS but can't add anything in the body of the SMS. What do I need to do?

TOPICS
Development
1.1K
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

correct answers 1 Correct answer

Mentor , Jan 07, 2011 Jan 07, 2011

Unfortunately, there are no AIR APIs that expose the underlying Android Intent API.

Translate
Mentor ,
Jan 07, 2011 Jan 07, 2011

I don't think it is possible in AIR. AIR uses the sms: URI to open the SMS app and unfortunately the Android OS ignores everything except the phone number.

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
Hi Joe,

Yeah, that's been the method I've been testing with. Is there a way for AIR to access the Intent API?


Android code:

final Intent i = new Intent(Intent.ACTION_SEND);
i.putExtra("sms_body", msgText);
i.putExtra(Intent.EXTRA_STREAM, imageUri);
i.setType("*/*");
startActivity(i);

Thanks

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
Mentor ,
Jan 07, 2011 Jan 07, 2011
LATEST

Unfortunately, there are no AIR APIs that expose the underlying Android Intent API.

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