skgmn / RapidDecoder

Simplified bitmap decoding and scaling for Android
Apache License 2.0
261 stars 43 forks source link

Can you please define how to decode image that is selected from sdcard. #7

Open amitsahni opened 9 years ago

amitsahni commented 9 years ago

I Used the below code for this but it always says file not found. but the same is working in case of gallery.

                 File cameraFile = new File(
                        Environment.getExternalStorageDirectory(),
                        "photo.jgp");
                if (cameraFile.getPath() != null) {
                    Bitmap bitmap = BitmapDecoder.from(context, cameraFile.getPath()).decode();
                    mImageView.setImageBitmap(bitmap);
                }