I have this code, and it works perfectly in an Ericsson XPERIA, but when I test the app in a SAMSUNG ACE, appears the error :
data=null
String file=Environment.getExternalStorageDirectory().getAbsolutePath()+ "/picture.jpg";
Intent i=new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
Uri output = Uri.fromFile(new File(archivo));
i.putExtra(MediaStore.EXTRA_OUTPUT, output);
startActivityForResult(i,CAMERA_REQUEST);
OnActivity Result
if (requestCode==CAMERA_REQUEST && resultCode==RESULT_OK){
Bundle extras=data.getExtras();
bmp=(Bitmap)extras.get("data");
image.setImageBitmap(bmp);
image.setVisibility(0);
Any idea why this is happening?