请问三星Galaxy SIII在其相机中的错误? [英] Does Samsung Galaxy SIII have a bug in its camera?

查看:146
本文介绍了请问三星Galaxy SIII在其相机中的错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用下面的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_ *带摄像头的意图,看

<一个href="http://thanksmister.com/2012/03/16/android_null_data_camera_intent/">http://thanksmister.com/2012/03/16/android_null_data_camera_intent/

<一个href="http://kevinpotgieter.word$p$pss.com/2011/03/30/null-intent-passed-back-on-samsung-galaxy-tab/">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);   
}

解决方案

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/

这篇关于请问三星Galaxy SIII在其相机中的错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆