android-camera

android - how to know geotagging feature from camera is on or no?

亡梦爱人 提交于 2020-04-20 15:01:11
问题 how to know geotagging feature from camera is on or no? this code for open camera phone Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); fileUri = getOutputMediaFileUri(MEDIA_TYPE_IMAGE); intent.putExtra(MediaStore.EXTRA_OUTPUT, fileUri); // start the image capture Intent startActivityForResult(intent, CAMERA_CAPTURE_IMAGE_REQUEST_CODE); 回答1: You can't check this programatically. You'll have to read the tags of the pictures taken and check the GPS-coordinates manually, if the tags

android - how to know geotagging feature from camera is on or no?

笑着哭i 提交于 2020-04-20 14:59:33
问题 how to know geotagging feature from camera is on or no? this code for open camera phone Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); fileUri = getOutputMediaFileUri(MEDIA_TYPE_IMAGE); intent.putExtra(MediaStore.EXTRA_OUTPUT, fileUri); // start the image capture Intent startActivityForResult(intent, CAMERA_CAPTURE_IMAGE_REQUEST_CODE); 回答1: You can't check this programatically. You'll have to read the tags of the pictures taken and check the GPS-coordinates manually, if the tags

How to open both front and back camera at the same time on Samsung Galaxy Devices?

旧时模样 提交于 2020-04-16 06:12:10
问题 This is a question that is still left unanswered as i have gone through all the questions in SO. access both front and back camera simultaneously on samsung galaxy devices How to capture both front and back cameras in Galaxy S4 simultaneously? ...and so on but the real problem is that i have a perfectly working dual camera tested on multiple devices like: Google Pixel XL, LETV 1S, Elephone S7, LG Devices, practically most devices that have two Image Signal Processors, except for Samsung

Set display orientation failed

左心房为你撑大大i 提交于 2020-04-10 08:54:28
问题 I am opening front camera in my app. on the first time app run ok but when I run app again 2nd, 3rd or 4th times, it gives me exception java.lang.RuntimeException : set display orientation failed . Help Please. public class MirrorView extends SurfaceView implements SurfaceHolder.Callback { private static SurfaceHolder mHolder; private static Camera mCamera; private int zoom; private boolean freeze, hide = false; private final static String DEBUG_TAG = "MirrorView"; public static final int

Captured image always shows landscape and setRotate cannot be resolved

走远了吗. 提交于 2020-04-07 08:57:27
问题 There are quite a few similar topics and issues around here and I follow this . But I get error. My Code @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); if (resultCode == RESULT_OK) { if (requestCode == 1) { //h=0; File f = new File(Environment.getExternalStorageDirectory().toString()); for (File temp : f.listFiles()) { if (temp.getName().equals("temp.jpg")) { f = temp; File photo = new File

Can we bypass save and delete option in intent camera for taking image in android?

老子叫甜甜 提交于 2020-04-07 06:11:31
问题 I want to by pass save and delete option on taking image from Android Intent Camera, without using custom camera. Save image directly just capturing image. 回答1: There is a "quick capture" mode in Android stock camera, at least in Android 5.0 and 5.1, it works as intended on Nexus but does not work on my Samsung phone, because of custom Samsung camera app. Also I'm not sure it will work on older versions of Android. Test it from ADB shell: adb shell am start -a android.media.action.IMAGE

Can we bypass save and delete option in intent camera for taking image in android?

只愿长相守 提交于 2020-04-07 06:07:31
问题 I want to by pass save and delete option on taking image from Android Intent Camera, without using custom camera. Save image directly just capturing image. 回答1: There is a "quick capture" mode in Android stock camera, at least in Android 5.0 and 5.1, it works as intended on Nexus but does not work on my Samsung phone, because of custom Samsung camera app. Also I'm not sure it will work on older versions of Android. Test it from ADB shell: adb shell am start -a android.media.action.IMAGE

How to get real Camera max Megapixels of a device?

浪子不回头ぞ 提交于 2020-03-26 05:35:10
问题 I'm trying to find the REAL Camera max Megapixels of a device and i tested some code found on stackoverflow and google with cam.getParameters().getSupportedPictureSizes(); , but the code does not work well on all the devices. For example on NEXUS 5 it works fine and tells that the device haves 8Mpx, but in BQ Aquaris E5 FHD with KitKat 4.4.2 it does not work well and tells that the device haves 19 Mpx (it haves 13 Mpx...) The problem in Bq Aquaris is that the code obtains all the supported

Does Samsung Galaxy SIII have a bug in its camera?

泄露秘密 提交于 2020-03-14 05:00:24
问题 I use the following code to kick off the camera, however, 3/4's of the time, the photo does not save to memory. This only occurs on the Galaxy SIII. It works on the Nexus S and 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

Does Samsung Galaxy SIII have a bug in its camera?

家住魔仙堡 提交于 2020-03-14 04:56:11
问题 I use the following code to kick off the camera, however, 3/4's of the time, the photo does not save to memory. This only occurs on the Galaxy SIII. It works on the Nexus S and 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