mediastore

Get list of photo galleries on Android

穿精又带淫゛_ 提交于 2019-11-26 05:57:42
问题 I\'m looking for: A list of the existing photo gallery names (hopefully their top thumbnail as well) The contents of the gallery (I can then load thumbnails and full size as needed) How would I go about getting a list of the \"Galleries\" (don\'t know if that\'s the proper term in android for the groupings of images visible in the Gallery app...) and their contents? I need access to the gallery in it\'s structure without using the existing gallery display (I\'m creating a totally new one, not

List all camera images in Android

ⅰ亾dé卋堺 提交于 2019-11-26 05:26:04
问题 How do you get a list of all camera images of an Android device? Is it through the MediaStore? How? 回答1: The Gallery app obtains camera images by using a content resolver over Images.Media.EXTERNAL_CONTENT_URI and filtering the results by Media.BUCKET_ID. The bucket identifier is determined with the following code: public static final String CAMERA_IMAGE_BUCKET_NAME = Environment.getExternalStorageDirectory().toString() + "/DCIM/Camera"; public static final String CAMERA_IMAGE_BUCKET_ID =

How can I refresh MediaStore on Android?

江枫思渺然 提交于 2019-11-25 23:48:47
问题 This started out as a general user question on Android forums. However it\'s become, by necessity, a programming question. Here\'s my problem. Android has a service - MediaScanner - which runs in the background any time (I believe) the SD card is un-mounted and re-mounted. This service collects data on all the media files on the card, and provides a SQLite DB which can be queried by music applications. Most music applications use this service as it saves on battery-drain associated with