请问三星Galaxy SIII在其相机中的错误?错误、相机、Galaxy、SIII

2023-09-06 05:09:26 作者:痞味小仙女

我用下面的code揭开序幕相机,但是,四分之三的时间,照片不会保存到内存中。这仅发生在银河SIII。它的工作原理了Nexus S上和Nexus One的

 公共无效photoNew(){
    。holdingImage = getContentResolver()插入(MUtil.genImgUri(),新ContentValues​​());
    意图I =新的意图(MediaStore.ACTION_IM​​AGE_CAPTURE);
    捆绑额外=新包();
    extras.putParcelable(MediaStore.EXTRA_OUTPUT,holdingImage);
    extras.putBoolean(回归数据,真正的);
    i.putExtras(临时演员);
    startActivityForResult(ⅰ,REQ_PHOTO);
}
 

解决方案

有不同的三星设备的一个众所周知的错误,不支持EXTRA_ *带摄像头的意图,看

http://thanksmister.com/2012/03/16/android_null_data_camera_intent/

http://kevinpotgieter.word$p$pss.com/2011/03/30/null-intent-passed-back-on-samsung-galaxy-tab/

I use the following code to kick off the camera, however, 3/4's of the time, the photo does not save to memory. This only occurs on the Galaxy SIII. It works on the Nexus S and Nexus One

public void photoNew() {
    holdingImage = getContentResolver().insert(MUtil.genImgUri(), new ContentValues());   
    Intent i = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
    Bundle extras = new Bundle();
    extras.putParcelable(MediaStore.EXTRA_OUTPUT, holdingImage);
    extras.putBoolean("return-data", true);
    i.putExtras(extras);
    startActivityForResult(i, REQ_PHOTO);   
}
猎户座四核CPU Galaxy S III售4099元

解决方案

There is a well known bug with different Samsung devices that do not support EXTRA_* with camera intent, see

http://thanksmister.com/2012/03/16/android_null_data_camera_intent/

http://kevinpotgieter.wordpress.com/2011/03/30/null-intent-passed-back-on-samsung-galaxy-tab/