Szczegóły ebooka

Flash Development for Android Cookbook. Over 90 recipes to build exciting Android applications with Flash, Flex, and AIR

Flash Development for Android Cookbook. Over 90 recipes to build exciting Android applications with Flash, Flex, and AIR

Joseph Labrecque

Ebook
Flash has now arrived to Android — the fastest growing smartphone platform. This offers massive opportunities for Flash developers who want to get into mobile development. At the same time, working on smartphones will introduce new challenges and issues that Flash developers may not be familiar with.

The Flash Development for Android Cookbook enables Flash developers to branch out into Android mobile applications through a set of essential, easily demonstrable recipes. It takes you through the entire development workflow: from setting up a local development environment, to developing and testing your application, to compiling for distribution to the ever-growing Android Market.

The Flash Development for Android Cookbook starts off with recipes that cover development environment configuration as well as mobile project creation and conversion. It then moves on to exciting topics such as the use of touch and gestures, responding to device movement in 3D space, working with multimedia, and handling application layout. Essential tasks such as tapping into native processes and manipulating the file system are also covered. We then move on to some cool advanced stuff such as Android-specific device permissions, application debugging and optimization techniques, and the packaging and distribution options available on the mobile Android platform.

In a nutshell, this cookbook enables you to get quickly up to speed with mobile Android development using the Flash Platform in ways that are meaningful and immediately applicable to the rapidly growing area of mobile application development.
  • Flash Development for Android Cookbook
    • Table of Contents
    • Flash Development for Android Cookbook
    • Credits
    • Foreword
      • Mobile is as HOT as a Habanero Chili!
        • Android with a dash of Flash
    • About the Author
    • About the Reviewers
    • www.PacktPub.com
      • Support files, eBooks, discount offers and more
        • Why Subscribe?
        • Free Access for Packt account holders
        • Instant Updates on New Packt Books
    • Preface
      • What this book covers
      • What you need for this book
      • Who this book is for
      • Conventions
      • Reader feedback
      • Customer support
        • Downloading the example code
        • Errata
        • Piracy
        • Questions
    • 1. Getting Ready to Work with Android: Development Environment and Project Setup
      • Introduction
      • Using Flash Professional CS5.5 to develop Android applications
        • How to do it
        • How it works
        • Theres more
      • Targeting AIR for Android with Flash Professional CS5.5
        • How to do it
        • How it works
        • There's more
        • See also
      • Using Flash Builder 4.5 to develop Android applications
        • How to do it
        • How it works
        • See also
      • Enabling Flash Builder 4 or Flex Builder to access Flex Mobile SDKs
        • How to do it
        • How it works
        • There's more
        • See also
      • Using Flash Builder 4 and below to develop Android applications
        • How to do it
        • How it works
        • See also
      • Enabling Powerflasher FDT 4.1 to access Flex Mobile SDKs
        • How to do it
        • How it works
        • See also
      • Using Powerflasher FDT 4.1 and below to develop Android applications
        • How to do it
        • How it works
        • See also
      • Converting a standard Flex project to a Flex Mobile project
        • How to do it
        • How it works
        • There's more
      • Configuring the AIR SDK to package AIR for Android applications on Windows
        • How to do it
        • How it works
        • See also
      • Configuring the AIR SDK to package AIR for Android applications on Linux or Mac OS
        • How to do it
        • How it works
        • See also
    • 2. Interaction Experience: Multitouch, Gestures, and Other Input
      • Introduction
      • Detecting supported device input types
        • How to do it...
        • How it works...
      • Detecting whether or not a device supports multitouch
        • How to do it...
        • How it works...
        • There's more...
      • Verifying specific gesture support for common interactions
        • How to do it...
        • How it works...
        • There's more...
      • Using gestures to zoom a display object
        • How to do it...
        • How it works...
        • There's more...
        • See also...
      • Using gestures to pan a display object
        • How to do it...
        • How it works...
        • There's more...
        • See also...
      • Using gestures to swipe a display object
        • How to do it...
        • How it works...
        • There's more...
        • See also...
      • Using gestures to rotate a display object
        • How to do it...
        • How it works...
        • There's more...
        • See also...
      • Accessing raw touchpoint data
        • How to do it...
        • How it works...
        • There's more...
      • Creating a custom gesture based upon touchPoint data
        • How to do it...
        • How it works...
        • There's more...
      • Emulating the Android long-press interaction
        • How to do it...
        • How it works...
        • There's more...
      • Invoking the virtual keyboard programmatically
        • How to do it...
        • How it works...
        • There's more...
      • Responding to Android soft-key interactions
        • How to do it...
        • How it works...
        • There's more...
      • Responding to trackball and D-Pad events
        • How to do it...
        • How it works...
        • There's more...
    • 3. Movement through Space: Accelerometer and Geolocation Sensors
      • Introduction
      • Detecting whether or not an Android device supports the accelerometer
        • How to do it...
        • How it works...
      • Detecting Android device movement in 3D space
        • How to do it...
        • How it works...
        • There's more...
      • Adjusting the accelerometer sensor update interval
        • How to do it...
        • How it works...
        • There's more...
      • Updating display object position through accelerometer events
        • How to do it...
        • How it works...
      • Switching between portrait and landscape based upon device tilt
        • How to do it...
        • How it works...
        • There's more...
        • See also
      • Detecting whether or not a device supports a geolocation sensor
        • How to do it...
        • How it works...
        • See also
        • How to do it...
      • How it works...
      • There's more...
      • See also
      • Retrieving device geolocation sensor data
        • How to do it...
        • How it works...
      • Adjusting the geolocation sensor update interval
        • How to do it...
        • How it works...
        • There's more...
      • Retrieving map data through geolocation coordinates
        • Getting ready...
        • How to do it...
        • How it works...
        • There's more...
    • 4. Visual and Audio Input: Camera and Microphone Access
      • Introduction
      • Detecting camera and microphone support
        • How to do it...
        • How it works...
        • There's more...
      • Using the traditional camera API to save a captured image
        • How to do it...
        • How it works...
        • There's more...
        • See also...
      • Using the Mobile CameraUI API to save a captured photograph
        • How to do it...
        • How it works...
        • There's more...
        • See also...
      • Using the Mobile CameraUI API to save a captured video
        • How to do it...
        • How it works...
        • There's more...
        • See also...
      • Using the device microphone to monitor audio sample data
        • How to do it...
        • How it works...
          • What do all these properties mean?
        • See also...
      • Recording Microphone Audio Sample Data
        • How to do it...
        • How it works...
        • See also...
    • 5. Rich Media Presentation: Working with Images, Video, and Audio
      • Introduction
      • Loading photographs from the device cameraRoll
        • How to do it
      • How it works
      • There's more
      • Applying Pixel Bender Shader effects to loaded images
        • Getting ready
        • How to do it
        • How it works
        • There's more
      • Playing video files from the local filesystem or over HTTP
        • Getting ready
        • How to do it
        • How it works
        • There's more
      • Playing remote video streams over RTMP
        • Getting ready
        • How to do it
        • How it works
        • There's more
      • Playing audio files from the local filesystem or over HTTP
        • How to do it
        • How it works
        • There's more
      • Generating an audio spectrum visualizer
        • How to do it
        • How it works
        • There's more
      • Generating audio tones for your application
        • How to do it
        • How it works
        • There's more
    • 6. Structural Adaptation: Handling Device Layout and Scaling
      • Introduction
      • Detecting useable screen bounds and resolution
        • How to do it
        • How it works
      • Detecting screen orientation changes
        • How to do it
        • How it works
        • There's more
        • See also
      • Scaling visual elements across devices at runtime
        • How to do it
        • How it works
      • Scaling visual elements based on stage resize in Flash Professional CS5.5
        • How to do it
        • How it works
        • There's more
      • Employing the Project panel in Flash Professional CS5.5
        • How to do it
        • How it works
        • There's more
      • Freezing a Flex application to landscape or portrait mode
        • How to do it
        • How it works
        • There's more
        • See also
      • Defining a blank Flex mobile application
        • How to do it
        • How it works
        • There's more
      • Defining a Flex mobile view-based application
        • How to do it
        • How it works
      • Defining a Flex mobile tabbed application with multiple sections
        • How to do it
        • How it works
        • There's more
      • Using a splash screen within a Flex mobile application
        • How to do it
        • How it works
      • Configuring the ActionBar within a Flex mobile project for use with ViewNavigator
        • How to do it
        • How it works
        • There's more
      • Hiding the ActionBar control in a single view for a Flex mobile project
        • How to do it
        • How it works
        • There's more
    • 7. Native Interaction: StageWebView and URI Handlers
      • Introduction
      • Opening a website in the default Android browser
        • How to do it...
        • How it works...
        • There's more...
      • Rendering a website within an application
        • How to do it...
        • How it works...
        • There's more...
      • Managing the StageWebView history
        • How to do it...
        • How it works...
      • Using StageWebView to load ads using ActionScript
        • How to do it...
        • How it works...
        • There's more...
      • Using StageWebView to load ads within a Flex mobile project
        • Getting ready
        • How to do it...
          • Creating the HTML file to display our ads
          • Creating the MXML files for our ViewNavigatorApplication
            • Generating the ActionScript code to tie it all together
          • How it works...
          • There's more...
      • Making a phone call from an application
        • How to do it...
        • How it works...
      • Sending a text message from an application
        • How to do it...
        • How it works...
      • Invoking Google maps from an application
        • How to do it...
        • How it works...
        • There's more...
      • Invoking the Android Market using application URIs
        • How to do it...
        • How it works...
      • Sending e-mail from an application
        • How to do it...
        • How it works...
        • There's more...
    • 8. Abundant Access: File System and Local Database
      • Introduction
      • Opening a local file from device storage
        • How to do it...
        • How it works...
        • There's more...
      • Saving a file to device storage
        • How to do it...
        • How it works...
        • There's more...
      • Saving data across sessions through local shared object
        • How to do it...
        • How it works...
        • There's more...
      • Storing application state automatically by using Flex
        • How to do it...
        • How it works...
      • Creating a local SQLite database
        • How to do it...
        • How it works...
      • Providing a default application database
        • Getting ready...
        • How to do it...
        • How it works...
      • Automating database tasks with FlexORM
        • Getting ready...
        • How to do it...
        • How it works...
        • There is more...
    • 9. Manifest Assurance: Security and Android Permissions
      • Introduction
      • Setting application permissions with the Android Manifest file
        • How to do it...
          • Using Flash Professional:
          • Using Flash Builder:
          • Using a simple text editor:
          • How it works...
      • Preventing the device screen from dimming
        • How to do it...
        • How it works...
        • See also...
      • Establishing Android custom URI schemes
        • How to do it...
        • How it works...
        • See also...
      • Anticipating Android Compatibility Filtering
        • How to do it...
          • When using features of the Android camera:
          • When using features of the Android microphone:
          • When using the Geolocation Sensor:
          • When using the Accelerometer Sensor:
        • How it works...
        • See also...
      • Instructing an application to be installed to Device SDCard
        • How to do it...
        • How it works...
        • See also...
      • Encrypting a local SQLite database
        • Getting ready...
          • Instructions to include a .SWC package into a Flash Builder project
          • Instructions to include a .SWC package into a Flash Professional project
        • How to do it...
        • How it works...
        • See also...
    • 10. Avoiding Problems: Debugging and Resource Considerations
      • Introduction
      • Debugging an application with Flash Professional
        • Getting ready
        • How to do it...
        • How it works...
        • See also...
      • Debugging an application with Flash Builder
        • How to do it
        • How it works...
        • See also...
      • Rendering application elements using the device GPU
        • How to do it...
          • How it works...
          • There's more...
      • Automating application shutdown upon device interruption events
        • How to do it...
          • How it works...
          • See also
      • Exiting your application with the device back button
        • How to do it...
        • How it works...
        • There's more
        • See also
      • Monitoring memory usage and frame rate in an application
        • How to do it...
        • How it works...
        • There's more...
        • See also...
    • 11. Final Considerations: Application Compilation and Distribution
      • Introduction
      • Generating a code-signing certificate using Flash Professional
        • How to do it...
        • How it works...
      • Generating a code-signing certificate using Flash Builder
        • How to do it...
        • How it works...
      • Generating a code-signing certificate using FDT
        • How to do it...
        • How it works...
      • Generating a code-signing certificate using the AIR Developer Tool
        • Getting ready
        • How to do it...
        • How it works...
      • Preparing icon files for distribution
        • How to do it...
          • Using Flash Professional CS5.5
          • Direct modification of the AIR descriptor file
        • How it works...
        • There's more...
      • Compiling an application using Flash Professional
        • How to do it...
        • How it works...
      • Compiling an application using Flash Builder
        • How to do it...
        • How it works...
      • Compiling an application when using FDT
        • How to do it...
          • Using a mobile project template
          • Using ANT
          • Using ADT through CLI
        • How it works...
      • Compiling an application using the AIR Developer Tool
        • How to do it...
        • How it works...
        • See also
      • Submitting an application to the Android Market
        • Getting ready...
        • How to do it...
        • How it works...
        • There's more...
    • Index
  • Tytuł: Flash Development for Android Cookbook. Over 90 recipes to build exciting Android applications with Flash, Flex, and AIR
  • Autor: Joseph Labrecque
  • Tytuł oryginału: Flash Development for Android Cookbook. Over 90 recipes to build exciting Android applications with Flash, Flex, and AIR
  • ISBN: 9781849691437, 9781849691437
  • Data wydania: 2011-06-16
  • Format: Ebook
  • Identyfikator pozycji: e_3b0d
  • Wydawca: Packt Publishing