Skip navigation
jwriteclub
Currently Being Moderated

Sending an Android Intent (launching an Activity) from AIR

Jun 29, 2011 10:29 AM

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

 
Replies

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points