Flex Mobile in Action
Jonathan Campos
  • May 2012
  • ISBN 9781617290619
  • 372 pages

A must-read for anyone thinking of doing mobile apps.

Ken Brueck, Protoven

Flex Mobile in Action teaches you how to use the powerful Flex platform to create applications that can stretch across Apple iOS, Android, and BlackBerry devices. It focuses on practical application development techniques such as accessing native device capabilities, choosing the right architectural patterns, building data access models, and more. For developers new to Flex, the book provides a quick overview that will get you started in no time.

As you explore Flex Mobile, you'll also learn techniques for creating compelling mobile applications. Along the way, you'll explore the tools created by Adobe and the open source community for performance monitoring, debugging, and device connections.

About the Technology

Whether you're extending existing applications to mobile clients or taking a mobile first approach, you need a good mobile strategy. That's not easy. The mobile device market is complicated and changing rapidly, with constant innovation on the iOS, Android, and BlackBerry platforms. Flex Mobile is a new technology providing a single development environment that exports your application to any mobile platform utilizing the Adobe AIR runtime, eliminating the need to write and rewrite your code.

Table of Contents detailed table of contents

Part 1 Getting started

1. Getting to know Flex Mobile

1.1. Learning key terms

1.2. Deciding between native and cross-platform

1.3. What’s Flex Mobile?

1.4. Hello World

1.5. Introducing a running example

1.6. Summary

Part 2 Mobile development with Flex

2. Get going with Flex Mobile

2.1. Starting up your application

2.2. Running your application

2.3. Building your first application views

2.4. Persisting navigator state

2.5. Summary

3. Persisting data

3.1. Storing data with the local shared object

3.2. Storing data using SQLite

3.3. Simpler data storage with PersistenceManager

3.4. Summary

4. Using your device’s native capabilities

4.1. Creating a device capability testing app

4.2. Taking the same picture three different ways

4.3. Monitoring movement with the accelerometer

4.4. Finding out where you are with geolocation

4.5. Including the entire web with StageWebView

4.6. Using gestures the right way, right away

4.7. Texts, emails, maps, and phone calls

4.8. Recording sound with the microphone

4.9. Responding to OS-specific inputs

4.10. Summary

5. Handling multiresolution devices

5.1. Automatic scaling

5.2. Using media queries in CSS

5.3. Images for multiscreen projects

5.4. Overriding DPI returns to customize applicationDPI values

5.5. Splash screens

5.6. Summary

Part 3 Advanced mobile development

6. MVC with mobile applications

6.1. What is Robotlegs?

6.2. Hitting the ground running with Robotlegs

6.3. Separating your services

6.4. Refactoring your data into models

6.5. Splitting your code into views and mediators

6.6. Application upgrade

6.7. Summary

7. Architecting multiscreen applications

7.1. Laying out a multiscreen application

7.2. Libraries

7.3. Android application

7.4. Creating your QNX-specific application

7.5. Creating your iOS-specific application

7.6. Summary

8. Extending your mobile application

8.1. Making money by adding ads

8.2. Native extensions

8.3. Useful user tracking

8.4. Summary

9. Effective unit testing

9.1. What is unit testing?

9.2. Testing terms

9.3. Synchronous unit tests

9.4. Asynchronous test for event-driven tests

9.5. Running tests from the IDE

9.6. Summary

10. The almighty application descriptor

10.1. General application descriptor settings

10.2. Customizing your Android permissions

10.3. QNX permissions for deployment

10.4. Key points to iOS permissions

10.5. Summary

11. Building your application with Flash Builder

11.1. Exporting a release build with Flash Builder

11.2. Android release process

11.3. QNX release process

11.4. iOS release process

11.5. Releasing to markets

11.6. Summary

12. Automated builds using Ant

12.1. Building with Ant

12.2. Your build setup

12.3. Using Ant to run FlexUnit

12.4. Showing off your code with ASDocs

12.5. Building your library

12.6. Packaging for Android

12.7. Packaging for QNX (BlackBerry)

12.8. Packaging for iOS

12.9. Final steps

12.10. Summary

What's inside

  • Using ActionScript for mobile development
  • Accessing device specific capabilities
  • Mobile optimizations for your Flex code
  • Unit testing with FlexUnit
  • Deploying and selling your apps

About the reader

This book assumes no prior exposure to Flex Mobile. Experience with Flex or ActionScript is useful but not required.

About the author

Jonathan Campos is an active member of the Flash Community, also a blogger, author, speaker, and active contributor to the Flex framework. Jonathan works with Miller & Associates in Dallas as an enterprise and mobile developer.

placing your order...

Don't refresh or navigate away from the page.
eBook $35.99 3 formats
Flex Mobile in Action (eBook) added to cart
continue shopping
go to cart

Prices displayed in rupees will be charged in USD when you check out.

FREE domestic shipping on three or more pBooks