Skip to Content
Professional Android™ 2 Application Development
book

Professional Android™ 2 Application Development

by Reto Meier
March 2010
Intermediate to advanced
575 pages
14h 25m
English
Wrox
Content preview from Professional Android™ 2 Application Development

Chapter 11. Audio, Video, and Using the Camera

WHAT'S IN THIS CHAPTER?

  • Playing audio and video with the Media Player

  • Packaging audio as an application resource

  • Using the Video View for video playback

  • Recording audio and video with the Media Recorder

  • Recording video and taking pictures using Intents

  • Previewing recorded video and displaying live camera streams

  • Taking pictures and controlling the camera

  • Reading and modifying image EXIF data

  • Adding media to the Media Store

  • Manipulating raw audio

  • Using speech recognition

The only modern technology that can compete with mobile phones for ubiquity is the portable digital media player. As a result, the multimedia capabilities of mobile devices are a significant consideration for many consumers.

Android's open platform and provider-agnostic philosophy ensures that it offers a multimedia API capable of playing and recording a wide range of image, audio, and video formats, both locally and streamed.

The Camera API and OpenCORE multimedia platform expose these capabilities to your applications, providing comprehensive multimedia functionality.

In this chapter you'll learn how to play and record multimedia content including audio, video, and still images, as well as use the camera to capture images and preview and record live video.

You'll also learn how to manipulate raw audio files using the Audio Track and Audio Record classes, add newly recorded media files to the Media Store, and make use of speech recognition to add voice input to your applications.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Professional Android 4 Application Development, 3rd Edition

Professional Android 4 Application Development, 3rd Edition

Reto Meier

Publisher Resources

ISBN: 9780470565520Purchase book