[Android] contentResolver.query( MediaStore.Images.Media. EXTERNAL_CONTENT_URI, null, null, null, null)로 받는 테이블의 데이터들()


매번 projection 바꿔가며 찍어보는 게 귀찮아서 기록해 놓으려한다.

column name:
[instance_id, duration, project_id, description, picasa_id,
latitude, orientation, height, is_drm, burst_id,
bucket_display_name, owner_package_name, volume_name,
date_modified, date_expires, _display_name, datetaken,
mime_type, _id, _data, _hash, _size, lg_memo, title, width,
longitude, capture_url, is_favorite, is_trashed, group_id,
document_id, protected_type, is_pending, date_added,
mini_thumb_magic, primary_directory, secondary_directory,
isprivate, original_document_id, bucket_id, camera_mode,
is_lock, relative_path]

각 필드명과 대응하는 값들:

instance_id null
duration null
project_id null
description null
picasa_id null
latitude null
orientation null
height 2166
is_drm 0
burst_id 01_0001.jpg
bucket_display_name dd
owner_package_name null
volume_name external_primary
date_modified 1487987768
date_expires null
_display_name 01_0001.jpg
datetaken null
mime_type image/jpeg
_id 187053
_data /storage/emulated/0/Download/aa/bb/cc/dd/01_0001.jpg
_hash null
_size 172926
lg_memo null
title 01_0001
width 1402
longitude null
capture_url null
is_favorite 0
is_trashed 0
group_id 1142544255
document_id null
protected_type 0
is_pending 0
date_added 1597985705
mini_thumb_magic null
primary_directory Download
secondary_directory aa
isprivate null
original_document_id null
bucket_id 1915311588
camera_mode 0
is_lock 0
relative_path Download/aa/bb/cc/dd/

좋은 웹페이지 즐겨찾기