DisclaimerLet me start off by saying that I work for Adobe so I’m probably bias (and have been for the past 15 years prior to working for Adobe). I just haven’t found better tools available that allow me to be creative. Know that my goal is to be as objective as possible. So if you feel any part seems incorrect then I’d love to hear it. Thanks!
There are different mobile platforms available and even more mobile and tablet devices to choose from these days.Â The question is, which one do you target?Â This post focuses on creating apps for the Android operating system. Why?Â Because Android is now the most popular operating system among people who bought a smartphone in the past six months.Â Blackberry RIM and Apple iOS are in a statistical dead heat for second place, according to The Nielson Company.
Among all smartphone owners, Blackberry still holds the dominant share with 31 percent of the market, though its lead over Apple is declining. Twenty-eight percent of smartphone owners have iPhones, compared to 19 percent who have Android devices.
Android is a software stack for mobile devices that includes an operating system, middleware and key applications. The Android SDK also provides the tools and APIs necessary to begin developing applications on the Android platform. Android features include:
- Integrated browser based on WebKit
- Flash Player 10.1
- Camera, GPS, compass, accelerometer, gyroscopes, magnetometers, proximity, thermometers and pressure sensors
- GSM Telephony
- Bluetooth, EDGE, 3G, and WiFi
- Voice is available for Google Search Input as well as Voice actions
- SMS and MMS messaging
- Media support for audio, video, and still image formats
- Streaming media support with RTP/RTSP streaming, HTML5 video tag, Adobe Flash Streaming (RTMP) and HTTP Dynamic Streaming
- Tethering allows a phone to be used as a wireless/wired hotspot
- SQLite for structured data storage
- Optimized graphics powered by a custom 2D graphics library, 3D graphics are based on OpenGL ES
- Videocalling. The mainstream Android version doesn’t support video calling, however some handsets could have a customized version
- Java support. Note that there is no Java Virtual Machine in the platform. Java classes get recompiled into Dalvik executable and run on Dalvik virtual machine
- Application framework enabling reuse and replacement of components
- Rich development environment including a device emulator, tools for debugging, memory and performance profiling, and a plugin for the Eclipse IDE.
The Android OS can be used as an operating system for cellphones, netbooks and tablets. The first commercially available phone to run the Android operating system was the HTC Dream, released in October of 2008. The Android phones marketed by Google include:
- HTC G1 manufactured by HTC (internationally known as the HTC Dream)
- Nexus One manufactured by HTC
- Nexus S manufactured by Samsung
Here is a complete list of Android devices.
Since the Android OS is open source any manufacturer can take advantage of the operating system for their products. This means that there is an evergrowing number of devices appearing in the market almost daily. Some of the first Android tablets released were the 5 inch Dell Streak and the 7 inch Samsung Galaxy Tab. (I personally have the Samsung Galaxy Tab and love it.)
The world’s first TV running Android, called Scandinavia, has also been launched by the company People of Lava.
Native vs. The Flash Platform
One of the first steps in creating an Android app is to figure out what technology will be used to build it. There are basically two choices, native (Java and Android SDK) or the Flash Platform.
Native User Interface
Another benefit is that the native user interface controls are used by default when writing a native app. This makes the app familiar to users of that platform. No need to â€œreskinâ€ existing components or wait for an ActionScrpt/Flash library to be made (such as as3iphonecomponents or android-components).Â It is important to note that most games actually reskin the native user interface controls to work with the game design. So the native user interface design is not always used in its pure form anyway.
Issues with Going Native
Since the device landscape is changing dramatically, I encourage you to look up Mobile Application Development on Wikipedia.Â Last I counted there were 14 different choices for application development on a mobile platform.Â Itâ€™s up to the developer to choose the mobile platforms to support as well as the application environment to use.Â Often it boils down to three:
- Apple iOS – Appleâ€™s iOS Dev Center offers the Xcode package.
- Android – Developers can use the Android Development Tools plug-in for Eclipse.
- Windows Phone 7 – Developers use a specialized version of Microsoft Visual Studio.
Similarly, there are native application development tools for BlackBerry, Symbian, and other platforms.
The Flash Platform
The Adobe Flash Platform is a complete system of integrated tools, frameworks, servers, services, and clients that run across operating systems, browsers, and devices. Companies across industries use the Flash Platform to eliminate device and platform fragmentation, develop consistent and expressive interactive user experiences regardless of device. Lets take a look at the Flash Platform runtimes and tools.
Adobe Flash Player
The Flash player is installed on 98% of Internet-connected PCs and more than 450 million devices, offering the widest possible reach for games that run in the browser.
Adobe AIR extends Flash content beyond the browser to more mobile devices and platforms than any other runtime. It is Adobe AIR that is used to create apps for mobile devices.Â In Flash Professional for instance, itâ€™s as simple as publishing a game to â€œAIR for Androidâ€.
Adobe Flash Professional
Flash Professional actually has its origins as an animation tool. This means that at its core itâ€™s great for working with animation and graphics. From theses humble beginnings Flash has grown into a full fledged, powerful program able to create rich, immersive experiences complete with advanced interactivity written in ActionScript. The FWA has some great examples of this type of content.Â But this content can go beyond the browser and can be published to multiple platforms. Some of those platforms include:
- The Flash Player for browsers
- Adobe AIR for desktop applications
- AIR for Android for Android devices
- iOS packager for iPhone, iPod and iPad (using the Packager for iPhone)
Also note that Adobe Air and Flash Player are in the pipeline for Windows Phone 7, BlackBerry phones, and BlackBerry Tablets. In fact, Flash is an integral part of the BlackBerry PlayBook. This means users can spend more time creating and less time learning device specific frameworks and battling compatibility issues.
Adobe Flash Builder
Adobe Flash Builder provides programmers with a code-based way to create Flash applications. Users can create an app by writing ActionScript code or using the Flex Framework. The Flex Framework is a free, open source framework for developing and deploying rich Internet applications. Both can be used to create apps, but if you want to use the Flex Framework I encourage you to check out Flash Builder “Burrito”. This preview release introduces new features and enhancements to Flash Builder and provides support for the preview release of the Adobe Flex SDK codenamed “Hero.”
Flash Platform Benefits
The main issue when it comes to the â€œNative vs. Flashâ€ debate is performance.Â Native will usually run great, but thatâ€™s not to say Flash performance is bad to say the least.Â In fact, it can be tough to tell the difference. Try it for yourself by downloading a Flash-based app from AppBrain.
The Flash Player team is also constantly increasing performance of the Flash Player and Flash-based apps. Recently they have been focusing on GPU processing for graphics and will even be releasing a full, low level 3D API called â€œMolehillâ€ mid 2011. As long as they keep focusing on performance enhancements thereâ€™s no reason to believe that there will be much of a performance difference between native and Flash-based apps.
Aside from the tooling already listed, we (Adobe) have a powerful workflow, allowing for designers to use programs like Adobe InDesign, Adobe Photoshop, Adobe Illustrator, and Adobe Fireworks to move graphics fairly seamlessly into Flash Professional or Flash Builder for further development. This means there are rarely conversion issues when dealing with graphics, nor is there a lengthy process to move graphics from design to development.
Create Once, Customize for Many
What developer doesnâ€™t want to spend more time creating and less time porting code from one mobile platform to the next? Well, thatâ€™s what Flash-based apps enable you to do.Â With one single workflow, language, and framework you can create the base code that can be published to any device that supports Adobe AIR or the Flash Player. There might need to be some font adjustments, screen scaling and some optimization that needs to be done. Plus, you might want to take advantage of mobile specific capabilities like gestures and the acceleromenter.Â But overall I know many Flash developers (myself included) that have been able to do it in a day. Think about all the time you could save if you don’t have to learn every mobile deviceâ€™s framework. This leaves more time to create more apps (read: money). Check out the post One Code base, 5 Hours, 5 Devices by Serge Jespers for more information. The title says it all.
The current mobile APIs available are well documented and have been growing in recent years.Â The Adobe communities on the other hand, have been around for easily over 15 years. This means there is already an army of expert developers and designers posting on forums, writing books, creating APIs, presenting at conferences and teaching around the world. There is a sizeable work force of experienced Flash game developers and designers ready to help. We are also committed to helping the community through online tutorials on www.AdobeTV.com as well as the Adobe Developer Connection.
Flash for Android
The Flash platform enables users to create content for â€œin the browserâ€ (using the Flash Player) as well as â€œoutside the browserâ€ in the form of Adobe AIR for Android. This means users could potentially create a game for desktop browsers, mobile browsers and also publish it as an app. Most features are supported in both cases but itâ€™s important to outline the differences as noted:
|Flash Player 10.1
|Adobe AIR for Android
Consider using this functionality to make the app more usable on a mobile device or to add mobile specific features.
The mobile business is booming and so are Android devices. Using the tools available in the Flash Platform enables users to create apps easily to take advantage of this growing market.Â Future posts will deal with the specifics on how to make apps for Android devices.