1
사진을 찍을 때 나침반 방향과 휴대폰 기울기를 수집하려고합니다. 당연히, 나는 이것을하기 쉬운 방법의 확실하지 않다. 내 현재의 카메라 구현은 사용사진 촬영시 나침반 방향과 카메라 기울기를 수집하십시오.
Intent cameraIntent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
File file = new File(Environment.getExternalStorageDirectory(), "test.jpg");
cameraIntent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(file));
outputFileUri = Uri.fromFile(file);
startActivityForResult(cameraIntent, CAMERA_PIC_REQUEST);
는 기억, 기울기 및 방향이 사진 스냅시 를 수집해야합니다. 카메라를 호출 할 때 exif 데이터 나 내장 기능에서 아무 것도 찾을 수없는 것 같습니다.
감사합니다.