The Employee Directory for Android is a sample application that demonstrates how to build Flex applications for Android using the AIR runtime.
Watch the video:
The key point when you look at the source code of this application is that you build Flex applications for Android the exact same way you build Flex applications for the Browser and the Desktop: same programming model, same language, same tools, same code. This application, for example, uses a local SQLite database on your device that you access using the same database API you’d use for any other Flex application running on the AIR runtime.
The other good news is that you have access to additional APIs (GPS, accelerometer), and you can integrate with other applications on your phone (dialer, SMS, email, etc).
Downloads
| Application file | EmployeeDirectory.apk | 09/02/2010 |
| Project file | EmployeeDirectory.fxp | 09/02/2010 |

Hi Christophe,
I am trying to install your .apk on a 2.2 emulator under Windows Vista and I get
1358 KB/s (1267222 bytes in 0.911s)
pkg: /data/local/tmp/EmployeeDirectory.apk
Failure [INSTALL_FAILED_INVALID_APK]
Other AIR packaged apps are running fine, do you have any clue what it could be?
I am a flex developer and I am looking forward on creating mobile apps using AS3/Flex… but so far the examples and the support for this area is lacking…
Hope Adobe is going to do more on this and push to the limits to make the flex framework also available for mobile devices development (Not only ActionScript projects)
—-
Thank you!
Adrian, make sure you pass -target apk-emulator to adt, as is required with recent releases.
I have one general question. Air for android is recommending to use actionscript to write android app instead flex4. so, I wonder what is limitation of using flex4 vs actionscript. I saw the source code of employee dictory. it is air application project based on flex4 than pure actionscript air project.
I’m sorry! This might sounds like a stupid question. I am new to smartphone supported apps and i was wondering I should be downloading this to my phone and not my computer?
This code doesn’t work and doesn’t even follow the guideline set out by Adobe Air for Android docs. For a start it uses mxml which is flex, instead of actionscript and the documentation clearly advises against that, as follows:
“The Flex 4 framework has not yet been optimized for mobile devices. However, advanced developers who are familiar with creating ActionScript-only AIR projects in Flash Builder can package those projects for Android using the adt command-line tool in the prerelease AIR for Android SDK. For more information on adt, please refer to the prerelease SDK documentation. If you encounter difficulties with this workflow, let us know through the forums.”
The documentation clearly states “ACTIONSCRIPT ONLY” and even then you have to be an advanced developer and use command line to get things done.
So, my question is, why would a demo app be implemented in such a way that would add confusion rather that clarify things for developers who want to adopt the technology and move it forward?
BTW, the apk did not install on HTC desire with Froyo.
Llies
Because Llies Meridja the new mobile components use a framework similar to flex. So if we develop our apps using the spark framework then when they release the mobile framework we won’t have to start from scratch. Short term negative speed hits in exchange for future less coding.
hi ,
Can you help me to find out how competitive this “air for android sdk” is? Do u know, if
u can use hardware buttons of a android device?
u can use the android menu system (icon menu, sub menu, expand menu)?
u can use 2 cameras in the same time?
u can use contacts and calender entries? e.g. android:name=”android.permission.READ_CALENDAR
THX
Marco
Hi,
I got a error when am trying to install apk file
‘Failure [INSTALL_FAILED_INVALID_APK]‘. and I succeed to run other apk file except this one that created to run AIR application in android(emulator version 2.2.).
(working in windows vista platfrm)
I installed AIR run time in emulator,it does working
Plz sombody help me
thanks in advance
regards,
kariyachan
Hi Christophe,
what a awesome example.
I got an error when I try to open the FXP source code.
it pop an error message ”
“This FXP project has been modified ouside of Flash Catalyst and cannot be opened”
could u please send me a complete source code ?
i want to practice..
thank u very much..
Hi Christophe,
the example is really great. I especially like the call to the sms and email apps on the phone. Is it possible to call a navigation app in this way?
Best Regards,
Mario
Hi Christophe,
I downloaded the EmployeeDirectory.apk file and installed in my LG Optimus One Android Phone.Which has ARMv6 Processor and 256 ram.I have used the Runtime.apk file provided by http://forum.xda-developers.com/ blog.The application is running fine.
But when i make any apk file by either Flash CS5 or Flex Burrito.They fail to install.In some cases when i make the .apk file in command line they install but only Black screen is shown.
Can you please share us Which environment you are using to build the AIR and .apk files.If possible can you share the versions of the Flash CS5 and FLEX sdk and the Runtime.apk file you are using.
Thanks
very very thanks web site
I tried to install the application on the emulator, but appeared to me the following error “Failure [Install_Failed_Invalid_Apk].” What shall I get this error.
I used: adb install EmployeeDirectory.apk.
A anyone solved this problem?