<div style="text-align: left;">
</div>
先贴产生BUG代码:
//判断手机SD是否存在
<pre name="code" class="java">if (state.equals(Environment.MEDIA_MOUNTED)) {
Intent openCameraIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);//MediaStore.ACTION_IMAGE_CAPTURE
Uri imageUri = Uri.fromFile(new File(FileUtils.SDPATH,getIntent().getStringExtra("orderid")+"_shoes_"+str+".jpg"));
//指定照片保存路径(SD卡),image.jpg为一个临时文件,每次拍照后这个图片都会被替换
openCameraIntent.putExtra(MediaStore.EXTRA_OUTPUT, imageUri);
Toast.makeText(getApplicationContext(), "请确认已经插入SD卡", Toast.LENGTH_LONG).show();
startActivityForResult(openCameraIntent, TAKE_PICTURE);
} else {
}
然后再