Flex SDK 4.5: AIR for Android

Is it already possible to use Flex SDK 4.5 (Hero) to comile a swf using the new mxml for mobile options?
<s:MobileApplication> ...

16 comments
Comment actions Permalink

oh nice - got it working messing around with air-config.xml from the sdk as custom compiler config file

0
Comment actions Permalink

Complete support is not done yet in IDEA, so you may use some workarounds like custom compiler config file. Work is in progress.

0
Comment actions Permalink

Thanks would be great to have "out of the box" support for Android testing and publishing.

0
Comment actions Permalink

With the new AIR 2.6 SDK it is possible to publish to iOS as well, additionally there is an SDK for Blackberry Playbooks.
Any progress in this area?

0
Comment actions Permalink

Latest IDEA 10.5 EAP contains initial support for Flex mobile development. Currently it supports running/debugging AIR 2.6 applications on Android devices. iOS support is in progress. I'll publish a blog post as soon as AIR mobile support becomes more solid.

0
Comment actions Permalink

Good News!
Almost forgot - support for Blackberry Playbook AIR SDK would help, too.
Maybe the Android solution directly works for Playbook, both SDKs are very similar.

0
Comment actions Permalink

Anyone tried the latest IDEA 10.5 EAP build 107.18 with the new Flex 4.5 SDK released today?
Isn't working for me -> Could not resolve <s:MobileApplication> to a component implementation.
mobilecomponents.swc is included in Flex 4.5 SDK build 20967.

0
Comment actions Permalink

Adobe has renamed MobileApplication class to ViewNavigatorApplication

0
Comment actions Permalink

Got it working using a custom app.xml
using <application xmlns="http://ns.adobe.com/air/application/2.6">
instead of 2.5

0
Comment actions Permalink

Latest EAP uses correct namespace (2.6) automatically if you use released SDK 4.5 http://confluence.jetbrains.net/display/IDEADEV/IDEA+10.5+EAP

0
Comment actions Permalink

Packaging for Android using Tools->Package Mobile AIR Application works like charm.

Run/Debug Configuration to directly run on Android device looks very promising.
But how can I package my app assets when using "AIR Mobile" configuration?
Only the main.swf gets packaged to debug apk.

0
Comment actions Permalink

I'm afraid there's no way to handle APK packaging options when launching AIR Mobile run configuration using IDEA 10.5. I've opened a major request for that which will be fixed for IDEA 10.5.1: http://youtrack.jetbrains.net/issue/IDEA-69646

0
Comment actions Permalink

Thx!

Without packaging direct debugging is quite useless for me, unless I create a custom maven/ant/whatever solution.

Looking forward to this option as well for iOS and Blackberry Playbook :D

0
Comment actions Permalink

Several hints will allow you to debug:
1. Package APK using Tools | Flex | Package Mobile AIR Application, specify type= 'debug over network'.
2. Create Flex Run configuration of type 'Connect to already running Flash Player' (Run | Edit Configurations)
3. Launch this run configuration
4. Manually install and launch APK on the device. It will connect to IDEA if device and computer is in the same local network. (On Windows you need to turn off its firewall before starting).

0
Comment actions Permalink

The fix is available in just released 10.5.1 EAP: http://confluence.jetbrains.net/display/IDEADEV/IDEA+10.5+EAP
Notice 'Packaging options' button at AIR mobile run configuration dialog.
Feedback on the feature is very much welcome!

0
Comment actions Permalink

Well done!
First tests were successful for me.

Thank you guys!

0

Please sign in to leave a comment.