【发布时间】: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