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

How to receive shared images on Andoid and iOS?

Community Beginner ,
Sep 23, 2017 Sep 23, 2017

Copy link to clipboard

Copied

HI, I'd like to add my AIR app to the eligible ones to receive shared images on Android and iOS. How can I do it? How can I access the image after it is shared to my app? Do I need an extension to do that?

Thank you a lot!

TOPICS
Development

Views

282

Translate

Translate

Report

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
Community Beginner ,
Sep 25, 2017 Sep 25, 2017

Copy link to clipboard

Copied

LATEST

Adding the app to the sharing list was easy: I just put this into the android manifestAdditions on my application descriptor:

<application>

  <activity>

    <intent-filter>

      <action android:name="android.intent.action.MAIN" />

      <category android:name="android.intent.category.LAUNCHER" />

    </intent-filter>

    <intent-filter>

      <action android:name="android.intent.action.SEND" />

      <category android:name="android.intent.category.DEFAULT" />

      <data android:mimeType="image/*" />

    </intent-filter>

  </activity>

</application>

I was expecting to receive ionformation about the shared picture from the InvokeEvent when the app was started by the sharing event, like this:

NativeApplication.nativeApplication.addEventListener(InvokeEvent.INVOKE, onInvoke);

And

private function onInvoke(evt:InvokeEvent):void

{

  // process the event here to get shared imga info

}

However the received InvokeEvent does not come with any info about the picture...

Votes

Translate

Translate

Report

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