Skip to main content
Participating Frequently
October 1, 2013
Question

Launch Mobile Application into Android Simulator (AVD) to receive INTENTS

  • October 1, 2013
  • 1 reply
  • 723 views

On doing some googling, I saw a few stackoverflow messages that indicated back in 2011 that it was not possible to build and AIR app straight to an AVD. Is that still true?

I wrote a native android app that sends an intent with some text data, that will be picked up by an ANE that I'm writing, then deliver it to my AIR app. I don't see any clear examples anywhere of that being done before. If anyone can offer links or suggestions, I'd appreciate it. Here is a link to my project in progress on GitHub. I will be leaving this project up for others to learn from on the chance I might eventually have success:

     https://github.com/interactivenyc/ANESampleProject

PS: Getting the AIR app to run in an AVD is simply a convenience I'm trying to work out – I've been able to build these projects to my Nexus 7 with no problem. The ANE  is the Big Picture project that I thought I'd throw in for context, and to ask for a little help.

Thanks in advance,

-steve warren

This topic has been closed for replies.

1 reply

Participating Frequently
October 1, 2013

I've cleaned up the sample project to make it more intelligible. The ReadMe now looks like this:

ANESampleProject

This project was created in conjunction with this tutorial: http://www.adobe.com/devnet/air/articles/ane-android-devices.html

This is a work in progress to create an ANE that facilitates the sending of an intent from an Android Native App to and AIR Android App. Any help or feedback would be immensely appreciated!

You can email me at steve@speakaboos.com.

Project Info

ANESampleSWC is an ActionScript Library Project, and creates the SWC interface for the ANE

ANESampleJava is the Java code for the ANE. ANESampleContext is the ANE interface on the Java side. SendIntentActivity.java is the Activity meant to receive the intent from the TEST_AndroidNative app.

ANESampleBuild is the project that builds the ANE from ANESampleSWC and ANESampleJava. There is a shell script called buildANE.sh that does the work. You must open that file in a text editor and set the two variables at the top to be appropriate for your project setup.

TEST_AndroidNative is the app that sends the intent to the TEST_AndroidAIR app. The only button that is set up to work at the moment is the [ EXPLICIT Intent ] button. It calls a function in MainActivity.java called sendExplicitIntent.

TEST_AndroidAIR is the AIR app that receives the intent. It must have the swc libraries in the libs folder included, as well as the ANE in the libs_ane folder. Currently it displays some traces in a log window and has a button that's not doing anything right now. When the intent is received, I would like it to display the data in the log window.