Wiley
Wiley.com
Print this page Share

Android Development with Flash: Your visual blueprint for developing mobile apps

ISBN: 978-0-470-90432-9
352 pages
October 2010
Android Development with Flash: Your visual blueprint for developing mobile apps (0470904321) cover image
The visual guide to developing for one of the world’s hottest new mobile platforms, the Android OS

The Android operating system works on phones that combine a camera, Web browser, e-mail, GPS, and mapping tool into a single accessible pocket-sized unit, and can function on computers, as well. Aimed at visual learners and packed with hundreds of screen shots, this guide brings Flash developers up to speed on the necessary factors to take into account when developing for this touch-based, mobile platform. Experienced Flash developer Julian Dolce escorts you through the process of creating applications for the Android OS using the Flash CS5 development platform and informs you of best practices to try as well as common pitfalls to avoid.

  • Guides you step by step through the process of creating applications for the Android OS using Flash CS5
  • Explores the capabilities and limitations of developing apps for the Android OS
  • Points out common pitfalls and teaches you best practices
  • Features hundreds of screen shots to assist with visual learning

Android Development with Flash: Your visual blueprint for developing mobile apps gets you on your way to developing apps for Android… in a flash!

See More
HOW TO USE THIS VISUAL BLUEPRINT BOOK.

1 GETTING STARTED WITH ANDROID DEVELOPMENT.

Introducing Android Devices.

Introducing the Development Tools.

Introducing the Available APIs.

Check What APIs Are Not Available.

Become an Android Developer.

Get the Android SDK.

Get the Android Eclipse Plug-in.

Enable USB Debugging.

Create an Android Virtual Device.

Start the Emulator.

2 GETTING STARTED WITH FLASH CS5.

Using the Actions Panel.

Create a Skeleton Custom Class.

Set the Source Path.

Create MovieClips.

Create Buttons.

Edit Properties in Flash.

Add Objects to the Stage with Code.

Remove Objects from the Stage with Code.

Work with Events.

Using the Drawing API.

Using Flash CS5 Help.

3 DEVELOPING YOUR FIRST APPLICATION.

Create a New Project.

Configure Publish Settings.

Set Your Application Output.

Create a P12 Certificate.

Compile from Flash Professional CS5.

Compile from the Command Line.

Install Your Application on Your Device.

Update Your Version Number.

Set Application Permissions.

Set a Custom Application URI.

4 DESIGNING YOUR APPLICATION.

Mobile User Interface Guidelines.

Understanding Screen Resolutions.

Create Full-Screen Applications.

Understanding Screen Orientation.

Create Usable Hit States.

Understanding Layout.

5 HANDLING INTERACTION.

Create Button States.

Respond to Touch Events.

Track Multiple Touches.

Respond to Zoom Events.

Respond to Rotate Events.

Respond to Pan Events.

Respond to Swipe Events.

Listen for Accelerometer Events.

Determine If the Accelerometer Is Available.

Determine Device Orientation.

Detect Which Way Is Up.

Filter Accelerometer Data.

6 WORKING WITH IMAGES.

Prepare Your Images.

Import Images.

Display Images.

Bundle Images with Your Application.

Load Images at Runtime.

Create Images Dynamically.

Save Images to the Camera Roll.

Select Images from the Camera Roll.

Display the Camera.

7 WORKING WITH SOUND.

Import Audio into Your Project.

Choose an Audio Codec.

Bundle Sounds with Your Application.

Load Sounds at Runtime.

Play Sounds.

Stop Sounds.

Set the Volume of a Sound.

Visualize the Sound Spectrum.

Access the Microphone.

8 WORKING WITH VIDEO.

Explore Available Video Formats and Encode a Video File.

Convert Videos.

Embed a Video.

Bundle a Video with Your Application.

Load a Video.

Buffer a Video.

Control a Video.

Set the Volume of a Video.

9 WORKING WITH TEXT.

Embed Fonts in Your Application.

Create an Input TextField.

Create a Password TextField.

Using TLF TextFields.

Create a Scrollable TextField.

10 SAVING STATE.

Create a Local SharedObject.

Write to a SharedObject.

Load Data from a SharedObject.

Connect to a SQLite Database.

Create a SQLite Table.

Insert Data into a SQLite Table.

Select Data from a SQLite Table.

Update Data in a SQLite Table.

Delete Data from a SQLite Table.

Handle Application Exits.

Save Application States.

Handle Back and Menu Button Presses.

Handle Application Deactivation.

11 WORKING WITH FILES.

Reference Files and Directories.

Write Files.

Read Files.

Update Files.

Append Files.

Handle Files Synchronously.

Copy Files.

Load SWF files.

12 USING THE LOCATION AND WIFI FEATURES.

Retrieve Your Current Location.

Map Your Location with Yahoo!

Map Your Location with Google.

Determine Your Speed.

Check for an Internet Connection.

Set the System Idle Mode.

Display Web Pages.

13 USING SPECIAL URL PROTOCOLS.

Make Phone Calls.

Open the Mail Application.

Open the Maps Application.

Open the Messaging Application.

Play a YouTube Video.

14 INTEGRATING WITH THIRD-PARTY SERVICES.

Submit Updates to Twitter.

Display Ads with Smaato.

Track with Google Analytics.

Display Ads with AdMob.

15 OPTIMIZING PERFORMANCE.

Optimize Your Display List.

Manage Mouse Events.

Understanding cacheAsBitmap.

Understanding cacheAsBitmapMatrix.

16 DEBUGGING YOUR APPLICATION.

Show Your Trace Statements.

Create Breakpoints.

Using the Flash CS5 Debugger.

Understanding the Debug Console.

Understanding the Variables Panel.

Debug with the Android Eclipse Plug-in.

17 DEPLOYING YOUR APPLICATION.

Take Screenshots of Your Application on Your Device.

Create an Application Icon.

Publish Your Application for the Android Market.

Upload Your Application to the Android Market.

APPENDIX A ACTIONSCRIPT CLASS REFERENCE.

INDEX.

See More
Julian Dolce is the senior Flash developer at QNX Software Systems, specializing in mobile AIR applications. Julian has spoken at numerous conferences around the world, where he has taught workshops on moving from Flash development to iPhone development, as well as a number of AIR for Android development workshops. He also maintains a personal development blog, www.deleteaso.com, in which he writes about his life as a Flash developer.
See More
Download TitleSizeDownload
Code Samples 24.68 MB Click to Download
Eratta: Android Development with Flash 100.48 KB Click to Download
See More
Back to Top