[android-developers] Re: How to get bitmap infomation before decode an image file?

2009-06-04 Thread quill
Is there any limit to use inJustDecodeBounds? When my picture is small enough, it works well, but it will report "failed binder transaction" in logcat when the picture size is larger than 100k. I have not use any binder, and it works well even the bitmap size is 1M before using Options argument.

[android-developers] Re: How to get bitmap infomation before decode an image file?

2009-06-04 Thread Streets Of Boston
Set the Options.inJustDecodeBounds to true and call the BitmapFactory's method to get/decode your bitmap. The bitmap returned will be null, but the Options.outWidth and Options.outHeight will be set to the image's width and height in pixels. Then call the BitmapFactory's method to get/decode you