diff options
author | Wu-cheng Li <wuchengli@google.com> | 2011-05-26 00:43:22 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-05-26 00:43:22 -0700 |
commit | eeb820cb086875a437968960c7b79c549aa660d8 (patch) | |
tree | 4947ad2456e9e72d8c31d5f44a7e6b62342093cd | |
parent | af40ad5126da5b116440e015fbc3cfb55ff437d4 (diff) | |
parent | 1c4edcb4f6c50997b534ac83712cc4c49531a5cb (diff) | |
download | packages_apps_LegacyCamera-eeb820cb086875a437968960c7b79c549aa660d8.zip packages_apps_LegacyCamera-eeb820cb086875a437968960c7b79c549aa660d8.tar.gz packages_apps_LegacyCamera-eeb820cb086875a437968960c7b79c549aa660d8.tar.bz2 |
Merge "Print video name for debugging."
-rw-r--r-- | src/com/android/camera/Thumbnail.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/camera/Thumbnail.java b/src/com/android/camera/Thumbnail.java index 8479c49..510e6a3 100644 --- a/src/com/android/camera/Thumbnail.java +++ b/src/com/android/camera/Thumbnail.java @@ -25,6 +25,7 @@ import android.graphics.Matrix; import android.net.Uri; import android.provider.MediaStore.Images; import android.provider.MediaStore.Images.ImageColumns; +import android.provider.MediaStore.MediaColumns; import android.provider.MediaStore.Video; import android.provider.MediaStore.Video.VideoColumns; import android.util.Log; @@ -162,7 +163,7 @@ class Thumbnail { Uri baseUri = Video.Media.EXTERNAL_CONTENT_URI; Uri query = baseUri.buildUpon().appendQueryParameter("limit", "1").build(); - String[] projection = new String[] {VideoColumns._ID}; + String[] projection = new String[] {VideoColumns._ID, MediaColumns.DATA}; String selection = VideoColumns.BUCKET_ID + '=' + Storage.BUCKET_ID; String order = VideoColumns.DATE_TAKEN + " DESC," + VideoColumns._ID + " DESC"; @@ -170,6 +171,7 @@ class Thumbnail { try { cursor = resolver.query(query, projection, selection, null, order); if (cursor != null && cursor.moveToFirst()) { + Log.d(TAG, "getLastVideoThumbnail: " + cursor.getString(1)); long id = cursor.getLong(0); Bitmap bitmap = Video.Thumbnails.getThumbnail(resolver, id, Video.Thumbnails.MINI_KIND, null); |