FANDOM


MediaStore is the Android ContentProvider for audio, images and video

You can use the MediaStore to handle persisting media to a shared location (rather than to some arbitrary place)

Selecting from MediaStore


URI;

Media.EXTERNAL_CONTENT_URI


The standard columns for images in the MediaStore are
represented in the MediaStore.Images.Media class.
String[] columns = { Media.DATA, Media._ID, Media.TITLE, Media.DISPLAY_NAME };

use the activity managedQuery method to search the MediaStoreEdit

cursor = managedQuery(Media.EXTERNAL_CONTENT_URI, columns, Media.DATE_ADDED + " > ?",�
whereValues, Media.DATE_ADDED + " ASC");


Return all RecordsEdit

Cursor cursor = managedQuery(
  Media.EXTERNAL_CONTENT_URI, 
  columns, 
  null, 
  null, 
  null
);


References:

Pro Android Media, Chapter 1