I have an android app where I go to the camera activity and take a photo, and then I execute the following code:
String s1 = file_uri.getPath();
BitmapFactory.Options options = new BitmapFactory.Options();
options.inJustDecodeBounds = true;
bitmap = BitmapFactory.decodeFile( s1, options);
ByteArrayOutputStream stream = new ByteArrayOutputStream();
bitmap.compress(Bitmap.CompressFormat.JPEG, 50, stream);
where the file_uri is the image path from the phone storage (it is not null) bitmap variable is null. Why?