Contents

Part 1 Getting started

1 Getting to know Flex Mobile
Learning key terms
Deciding between native and cross-platform
What’s Flex Mobile?
Hello World
Introducing a running example
Summary

Part 2 Mobile development with Flex

2 Get going with Flex Mobile
Starting up your application
Running your application
Building your first application views
Persisting navigator state
Summary
3 Persisting data
Storing data with the local shared object
Storing data using SQLite
Simpler data storage with PersistenceManager
Summary
4 Using your device’s native capabilities
Creating a device capability testing app
Taking the same picture three different ways
Monitoring movement with the accelerometer
Finding out where you are with geolocation
Including the entire web with StageWebView
Using gestures the right way, right away
Texts, emails, maps, and phone calls
Recording sound with the microphone
Responding to OS-specific inputs
Summary
5 Handling multiresolution devices
Automatic scaling
Using media queries in CSS
Images for multiscreen projects
Overriding DPI returns to customize applicationDPI values
Splash screens
Summary

Part 3 Advanced mobile development

6 MVC with mobile applications
What is Robotlegs?
Hitting the ground running with Robotlegs
Separating your services
Refactoring your data into models
Splitting your code into views and mediators
Application upgrade
Summary
7 Architecting multiscreen applications
Laying out a multiscreen application
Libraries
Android application
Creating your QNX-specific application
Creating your iOS-specific application
Summary
8 Extending your mobile application
Making money by adding ads
Native extensions
Useful user tracking
Summary
9 Effective unit testing
What is unit testing?
Testing terms
Synchronous unit tests
Asynchronous test for event-driven tests
Running tests from the IDE
Summary
10 The almighty application descriptor
General application descriptor settings
Customizing your Android permissions
QNX permissions for deployment
Key points to iOS permissions
Summary
11 Building your application with Flash Builder
Exporting a release build with Flash Builder
Android release process
QNX release process
iOS release process
Releasing to markets
Summary
12 Automated builds using Ant
Building with Ant
Your build setup
Using Ant to run FlexUnit
Showing off your code with ASDocs
Building your library
Packaging for Android
Packaging for QNX (BlackBerry)
Packaging for iOS
Final steps
Summary