I am passing parameter from android java app to air app by using the following,
ANDROID AIR
By using this feature an application can be made invokable from browser or native android application. When the application is invoked from browser/android-app, an InvokeEvent
is dispatched to the application. For making an application invokable from browser, add this in your application descriptor (as child of application element):
<android> <manifestAdditions> <![CDATA[ <manifest> <application> <activity> <intent-filter> <actionandroid:name="android.intent.action.MAIN"/> <categoryandroid:name="android.intent.category.LAUNCHER"/> </intent-filter> <intent-filter> <actionandroid:name="android.intent.action.VIEW"/> <categoryandroid:name="android.intent.category.BROWSABLE"/> <categoryandroid:name="android.intent.category.DEFAULT"/> <dataandroid:scheme="testapp"/> </intent-filter> </activity> </application> </manifest> ]]> </manifestAdditions></android>
Now to launch your application from browser, provide the url as: testapp://
. An example is:
<ahref="testapp://">click here to launch air test app from browser</a>
In JAVA CODE
Intent i =Intent.parseUri("testapp://arguments-to-pass",Intent.URI_INTENT_SCHEME);
i.addCategory(Intent.CATEGORY_BROWSABLE);
i.setComponent(null);
i.setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
startActivity(i);
Now I would like to return some parameters from the ANDROID Air App to JAVA App
Please help me.