My Employee Directory Application Published on the Android Market

I just published my AIR-for-Android Employee Directory application to the Android Market. If you have an Android device you can find it by searching “Employee Directory” from within the Market application.

This is a new version of the application. One of the new features in this version is that it allows you to easily import your own data (click the Menu button on your device to access the “Import Data” screen).

You can find more information on the application companion page: http://coenraets.org/directory.

[Read more...]

Multi-User Google Maps Collaboration on Android

This application allows users in different locations to work together in Google Maps.

The collaboration features in this application include:

  • Video Chat
  • Map Synchronization on move, zoom, etc.
  • Whiteboarding
  • Cursor sharing

When running on Android, the application can use the device’s GPS to share your location.

This is just another example of “built-in” collaboration (go here and here for more). The point is really how easy it is to add these collaboration features to any application, and then to deploy these collaboration-enabled applications to multiple screens (browser, desktop, Android, and more devices soon).

Experience the application in the browser

Click here to experience the browser version of the application.

The application is written in Flex 4. The collaboration features are powered by LiveCycle Collaboration Service.

Video Chat for Android in 30 Lines of Code

Here is a simple Video Chat application I built with Flex 4 and deployed on AIR for Android. The Application is just 30 lines of code and allows multiple users to join a chat room and “video chat”.

Video streaming is powered by LiveCycle Collaboration Services, a set of hosted Flash Services that enable developers to easily add real-time collaboration and social capabilities to their applications.

This application is obviously a bare-bones proof of concept. However, it is fully operational, and the same code can run on different runtime environments: AIR for Android, AIR on the Desktop, and Flash Player in the Browser. Users can participate in the same collaboration session regardless of the runtime environment they use.

Watch the video:

The 30 lines of code:

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:cs="AfcsNameSpace" currentState="logon" fontSize="28">

	<fx:Script>
		[Bindable] private var roomURL:String = "http://connectnow.acrobat.com/YOUR_ROOM_NAME";

		protected function connect():void {
			auth.userName = userName.text;
			currentState = "default";
			session.login();
		}
	</fx:Script>

	<s:states>
		<s:State name="default"/>
		<s:State name="logon"/>
	</s:states>

	<fx:Declarations>
		<cs:AdobeHSAuthenticator id="auth"/>
	</fx:Declarations>

	<s:TextInput id="userName" includeIn="logon" top="200" horizontalCenter="0"/>
	<s:Button label="Connect" click="connect()" includeIn="logon" top="250" horizontalCenter="0" height="50" width="150"/>

	<cs:ConnectSessionContainer id="session" roomURL="{roomURL}" authenticator="{auth}" autoLogin="false" width="100%" height="100%" includeIn="default">
		<cs:WebCamera top="10" left="10" bottom="10" right="10"/>
	</cs:ConnectSessionContainer>

</s:Application>

Android Trader Desktop with Flex and AIR — Updated for Froyo + Source Code Available

A few weeks ago, I posted a video of a Mobile Trader Desktop application I built using Flex 4 and AIR for Android. I recently updated the application for Froyo (Android 2.2), and I can now share the application file and the source code.

Watch the video:

Download the Application and Source Code

  • You can download the application (MobileTrader.apk) here
  • You can download the source code (MobileTrader.fxp project file) here

The latest version of AIR for Android is available here.

NOTE: In this version of the application, the stock updates are simulated at the client side so that you don’t have to install the server infrastructure. Modifying the application to get the stock updates from a server is easy: use this application as an example.

Employee Directory Sample Application Using Flex and AIR for Android – Updated for Froyo

I finally took the time to rebuild the Employee Directory application with the latest version of AIR for Android (available here) to run on Froyo. See the links below to download the apk and the source code. (If you are still running Eclair see my original post).

The Employee Directory application 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).

Download the Application and Source Code

  • You can download the application (EmployeeDirectory.apk) here
  • You can download the source code (EmployeeDirectory.fxp project file) here