outWidth and outHeight always 0 after gallery select.
example path (selectedImage) is: "/external/images/media/154"
    public Bitmap decodeFile(String selectedImage, int Size) {
          // Decode image size
         BitmapFactory.Options o = new BitmapFactory.Options();
         o.inJustDecodeBounds = true;
         o.inSampleSize = 1;
         BitmapFactory.decodeFile(selectedImage, o);
         int width_tmp = o.outWidth;
         int height_tmp = o.outHeight;
         Logger.d("Creating bitmap.","Width: " +
Integer.toString(width_tmp) + " , Height: " +
Integer.toString(height_tmp));
...

Setting inSampleSize doesn't make a difference.  Could you please
explain to me why outWidth and outHeight are 0 no matter what file is
selected? There is nothing in the log and no exception thrown.
API level 10 results on phone device.

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

Reply via email to