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

Sending an Android Intent (launching an Activity) from AIR

New Here ,
Jun 29, 2011 Jun 29, 2011

Copy link to clipboard

Copied

Hello all,

In order to integrate with a third party library I need to send an Android Intent (which is designed to launch an activity). In java the code would be something like


Intent i = new Intent(getContext(), ExternalActivity.class);

i.putStringExtra("data","myString");

getContext().startActivity(i);

Unfortunately, I cannot seem to find a way to do this is AIR. If it's possible at all, I suspect I involves flash.desktop.NativeApplication.dispatchEvent(), but I cannot seem to find any event type that will kick off native code.

All the best,

~ Christopher

TOPICS
Development

Views

1.3K

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
Mentor ,
Jun 30, 2011 Jun 30, 2011

Copy link to clipboard

Copied

LATEST

This isn't supported directly right now. You can build a hybrid Java/AIR app: http://www.jamesward.com/2011/05/11/extending-air-for-android/

In an upcoming release, creating such extensions will be supported directly.

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