I am facing with the NullpointerExcetion while putting image in Bitmap. I am getting Image from SD card.
Uri path = android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI;
imageFile = new File(getRealPathFromURI(path));
if(imageFile.exists()){
Bitmap myBitmap = BitmapFactory.decodeFile(imageFile.getAbsolutePath());
ImageView myImage = (ImageView) findViewById(R.id.imageView1);
myImage.setImageBitmap(myBitmap);
}