万本电子书0元读

万本电子书0元读

顶部广告

Flash Development for Android Cookbook电子书

售       价:¥

1人正在读 | 0人评论 9.8

作       者:Joseph Labrecque

出  版  社:Packt Publishing

出版时间:2011-06-16

字       数:173.4万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
Written in cookbook style, this book offers solutions to all common Flash Android development problems through recipes. Each recipe contains step-by-step instructions followed by analysis of what was done in each task and other useful information. The book is designed so that you can read it chapter by chapter, or you can look at the list of recipes and refer to them in no particular order. This book contains recipes covering a variety of topics from the very simple to those that are more advanced. If you are a seasoned Flash developer, this book will get you quickly up to speed with what is possible with Android. For those who are new to Flash, welcome to the world of visually rich, rapid application development for mobile Android devices! If you have any interest in Flash development for Android, this book is for you.
目录展开

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…

There's 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

累计评论(0条) 1个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部