Does Samsung Galaxy SIII have a bug in its camera?

家住魔仙堡 提交于 2020-03-14 04:56:11

问题


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);   
}

回答1:


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/



来源:https://stackoverflow.com/questions/13448731/does-samsung-galaxy-siii-have-a-bug-in-its-camera

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!