The following is the first few sections of a chapter from The Busy Coder's Guide to Android Development, plus headings for the remaining major sections, to give you an idea about the content of the chapter.


The MediaStore Provider

Playing back media is a popular pastime on Android devices, one in which your app may want to participate. The easiest way for you to find out what media is available for you to display, edit, or otherwise work with is via the MediaStore content provider. MediaStore is part of the Android framework and allows you to query for images, audio files, and video files that are indexed on the device.

This chapter will review the general workings of MediaStore, plus work through an example of getting video files — and their thumbnails — from MediaStore.

Prerequisites

Understanding this chapter requires that you have read the chapters on:

It is also a pretty good idea to have read the chapters on media recording and playback that might be of relevance, depending on what you intend to do with the MediaStore:

You might also wish to consider skimming through the chapter on files again, as it will be cross-referenced in several places in this chapter.

What Is the MediaStore?

The preview of this section is being chased by zombies.

MediaStore and “Other” External Storage

The preview of this section was lost due to a rupture in the space-time continuum.

How Does My Content Get Indexed?

The preview of this section will not appear here for a while, due to a time machine mishap.

How Do I Retrieve Video from the MediaStore?

The preview of this section was lost due to a rupture in the space-time continuum.