Contents

ImageContents at a Glance

ImageAbout the Author

ImageAbout the Technical Reviewers

ImageAcknowledgments

ImagePreface

ImageChapter 1: Introduction to Android Imaging

Image Capture Using the Built-In Camera Application

Returning Data from the Camera App

Capturing Larger Images

Displaying Large Images

Image Storage and Metadata

Obtaining an URI for the Image

Updating Our CameraActivity to Use MediaStore for Image Storage and to Associate Metadata

Retrieving Images Using the MediaStore

Creating an Image Viewing Application

Internal Metadata

Summary

ImageChapter 2: Building Custom Camera Applications

Using the Camera Class

Camera Permissions

Preview Surface

Implementing the Camera

Putting It All Together

Extending the Custom Camera Application

Building a Timer-Based Camera App

Building a Time-Lapse Photography App

Summary

ImageChapter 3: Image Editing and Processing

Selecting Images Using the Built-In Gallery Application

Drawing a Bitmap onto a Bitmap

Basic Image Scaling and Rotating

Enter the Matrix

Matrix Methods

Alternative to Drawing

Image Processing

ColorMatrix

Altering Contrast and Brightness

Changing Saturation

Image Compositing

Summary

ImageChapter 4: Graphics and Touch Events

Canvas Drawing

Bitmap Creation

Bitmap Configuration

Creating the Canvas

Working with Paint

Drawing Shapes

Drawing Text

Finger Painting

Touch Events

Drawing on Existing Images

Saving a Bitmap-Based Canvas Drawing

Summary

ImageChapter 5: Introduction to Audio on Android

Audio Playback

Supported Audio Formats

Using the Built-In Audio Player via an Intent

Creating a Custom Audio-Playing Application

MediaStore for Audio

Summary

ImageChapter 6: Background and Networked Audio

Background Audio Playback

Services

Local Service plus MediaPlayer

Controlling a MediaPlayer in a Service

Networked Audio

HTTP Audio Playback

Streaming Audio via HTTP

RTSP Audio Streaming

Summary

ImageChapter 7: Audio Capture

Audio Capture with an Intent

Custom Audio Capture

MediaRecorder Audio Sources

MediaRecorder Output Formats

MediaRecorder Audio Encoders

MediaRecorder Output and Recording

MediaRecorder State Machine

MediaRecorder Example

Other MediaRecorder Methods

Inserting Audio into the MediaStore

Raw Audio Recording with AudioRecord

Raw Audio Playback with AudioTrack

Raw Audio Capture and Playback Example

Summary

ImageChapter 8: Audio Synthesis and Analysis

Digital Audio Synthesis

Playing a Synthesized Sound

Generating Samples

Audio Analysis

Capturing Sound for Analysis

Visualizing Frequencies

Summary

ImageChapter 9: Introduction to Video

Video Playback

Supported Formats

Playback Using an Intent

Playback Using VideoView

Adding Controls with MediaController

Playback Using a MediaPlayer

Summary

ImageChapter 10: Advanced Video

MediaStore for Retrieving Video

Video Thumbnails from the MediaStore

Full MediaStore Video Example

Networked Video

Supported Network Video Types

Network Video Playback

Summary

ImageChapter 11: Video Capture

Recording Video Using an Intent

Adding Video Metadata

Custom Video Capture

MediaRecorder for Video

Full Custom Video Capture Example

Summary

ImageChapter 12: Media Consumption and Publishing Using Web Services

Web Services

HTTP Requests

JSON

Pulling Flickr Images Using JSON

Location

Pulling Flickr Images Using JSON and Location

REST

Representing Data in XML

SAX Parsing

HTTP File Uploads

Making an HTTP Request

Uploading Video to Blip.TV

Summary

ImageIndex

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.119.143.32