Hello

I use ImageGallery2 of application camera to select an image. The
result is an uri of image. The last segment of path is the image id in
database.

baseImageId in query is the last segment of previous uri
I execute this query to get thumb of my image (and query is sucess)

private static final String[] THUMB_PROJECTION = new String[] {
        BaseColumns._ID,           // 0
        Images.Thumbnails.IMAGE_ID,      // 1
        Images.Thumbnails.WIDTH,
        Images.Thumbnails.HEIGHT
    };

c = Thumbnails.queryMiniThumbnail(getContentResolver(), baseImageId,
Images.Thumbnails.MINI_KIND, AddObjectCategory.THUMB_PROJECTION);
if (c != null && c.moveToFirst()) {
      int thumbId = c.getLong(0);            <----------------
This Id isn't the id of image reduce
      int imageId = c.getLong(1);            <---- this id =
baseImageId
}

I'm on 1.1 sdk

You have an idea?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to