SDカードの画像をギャラリーに反映させる
ダウンロードした画像がギャラリーにすぐに反映されない。
SDカード上の画像はDB内にインデックス化され保存される。
タイミングはSDカードがマウントされたとき。
MediaScan | Android Wiki for Developers
Uri uri = Uri.parse("file://" + Environment.getExternalStorageDirectory()); Intent intent = new Intent(Intent.ACTION_MEDIA_MOUNTED, uri); sendBroadcast(intent);