The problem is I am trying to select image from the gallery. After that if I open the original image from the gallery it's not opening (Black screen coming)! Even if I tried to select that picture again from the application, it's giving an error like can't load image.
private void openGalleryForImageSelection()
{
Intent intent = new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.EXTERNAL_CONTENT_URI);
try
{
startActivityForResult(intent, IMAGE_FROM_GALLERY);
}
catch(Throwable e)
{
Log.e(LOG_TAG,"openGalleryForImageSelection failed",e);
Toast.makeText(this,getResources().getString(R.string.image_error),Toast.LENGTH_SHORT).show();
}
}
Please help me how can I resolve this issue. Thank you.