How to send parameter from android to air ??
hi..
i try send parameter from android to air using intent..
[android .java] -----------------------
Intent intent = new Intent();
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
intent.setAction(Intent.ACTION_VIEW);
intent.addCategory(Intent.CATEGORY_BROWSABLE);
intent.addCategory(Intent.CATEGORY_DEFAULT);
intent.putExtra("myKey", "1234567890");
intent.setClassName("air.SharedIntentSample.debug", "air.SharedIntentSample.debug.AppEntry");
startActivity(intent);
[Air .xml] -----------------------
<application android:enabled="true">
<activity android:excludeFromRecents="false">
<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.VIEW" />
<category android:name="android.intent.category.BROWSABLE"/>
<category android:name="android.intent.category.DEFAULT"/>
<data android:scheme="tel:" />
</intent-filter>
</activity>
</application>
[Air invoke handler .as] -----------------------
protected function onInvokeEventHandler(event:InvokeEvent):void
{
trace("[SharedIntentSample::onInvokeEventHandler(event)]" + arguments);
trace("[SharedIntentSample::onInvokeEventHandler(event)]" + event.arguments);
trace("[SharedIntentSample::onInvokeEventHandler(event)]" + event.reason);
trace("[SharedIntentSample::onInvokeEventHandler(event)]" + event.arguments.length);
}
but, it's not work..
How to send parameter from android to air..??
