【问题标题】:Does Samsung Galaxy SIII have a bug in its camera?三星 Galaxy SIII 的相机是否存在错误?
【发布时间】:2012-11-19 06:31:30
【问题描述】:

我使用以下代码启动相机,但是,有 3/4 的时间,照片没有保存到内存中。这只发生在 Galaxy SIII 上。它适用于 Nexus S 和 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);   
}

【问题讨论】:

    标签: android android-camera android-camera-intent


    【解决方案1】:

    不同的三星设备存在一个众所周知的错误,不支持带有相机意图的 EXTRA_*,请参阅

    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/

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2013-01-31
    • 1970-01-01
    • 1970-01-01
    • 2012-07-02
    • 2012-03-11
    • 1970-01-01
    相关资源
    最近更新 更多