馬上加入Android 台灣中文網,立即免費下載應用遊戲。
您需要 登錄 才可以下載或查看,沒有帳號?註冊
x
本帖最後由 mg0825 於 2014-10-8 12:24 編輯
- private static final int CAMERA_REQUEST = 1888;
-
- public void onClick_Camera(View view) {
- Intent cameraIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
- startActivityForResult(cameraIntent, CAMERA_REQUEST);
- }
-
- protected void onActivityResult(int requestCode, int resultCode, Intent data) {
- if (requestCode == CAMERA_REQUEST) {
- if (resultCode == Activity.RESULT_OK) {
- Bitmap photo = (Bitmap) data.getExtras().get("data");
-
- ImageView image = (ImageView) this.findViewById(R.id.imageView1);
- image.setImageBitmap(photo);
- }
- }
- }
複製代碼
我如上述code調用內建相機進行照相
預覽時都正常
但是拍照下去後便失焦了(點選圖片才看得清楚失焦)
我單獨使用內建相機進行拍照出來的圖片都正常
我是少了什麼code才導致拍攝的照片失焦嗎? |

|