Enable HDR option before starting camera intent - android

My app is taking pictures with the native android camera. With my Motorola X 2, everything is going fine when the intent is launching. I can change settings, luminosity, HDR option etc.
I installed the same application on a Nexus 5 (Android 6.0.1). I started the application and then the camera intent. The device won't allow to change the HDR settings. Otherwise, in the native camera application, I can change these settings.
Is there a way to enable programmatically the HDR option on the camera before starting the intent ?
Or another way to fix it ?

Is there a way to enable programmatically the HDR option on the camera before starting the intent ?
No.
Or another way to fix it ?
Take the pictures yourself, using the camera APIs. Note that this is rather complex.
Right now, you are delegating to a third-party camera application. There are over 8000 Android device models. There will be hundreds of different pre-installed camera apps across those models, plus many more that users install from the Play Store or elsewhere. None of them have to offer HDR control to the user. None of them have to offer you the ability to request a particular HDR setting. And your app could wind up requesting any of those, based upon device and user.
In your case, on one of your devices, one of the hundreds of camera apps happens to offer HDR control when launched normally and not offer HDR control when launched via ACTION_IMAGE_CAPTURE (or whatever other Intent action that you are using). Either the developers of that camera app chose that behavior intentionally, or they have a bug in their app. Regardless, there is nothing that you can do about it.

Related

Can I change the "type" of an App? e.g. if I wanted to make a Barcode Scanner my default "Camera" app... could I do that?

The TL;DR is I want to upload photos to a web form that aren't purely photos. In this specific case it would be an image from a Thermal Camera App that has its own physical accessory.
So this screen would list the Thermal Cam app as well.
Currently I cannot set it as the "Default Camera" application even though it does take pictures. Can I do anything to change that?
I am speaking as a tech-savvy user making educated guesses, not a developer.
Phone is a Samsung J7, Version 7.1.1 if it matters.
No
The app needs to support the Camera Intent Filters which would require the app developer to support all of the ways to pass back an image.
What can you do
Ask the publisher/developer of Thermal Camera App to support Camera Intents.

Launch camera to take photo in countdown mode

How can I launch to the device camera, in built-in countdown mode, configure it to 10s and take a photo?
Without user interaction.
The user should not press the capture button. It should start programmatically.
Thanks.
First, the "device camera" does not necessarily have a "built-in countdown mode". There are thousands of Android device models, with dozens (if not hundreds) of pre-installed camera apps. None have to have this feature. Similarly, there are hundreds of camera apps available on the Play Store, and none of them have to have this feature.
Second, even if a camera app has this feature, there is no requirement that it expose an API for third-party developers to invoke this feature.
Third, even if a camera app has this feature and exposes an API for it, there is no standards for this API.
You are welcome to contact the developers of various camera apps and see if they have the feature and, if so, if they have an API for third-party developers to invoke it.

Opening of Front Camera and Back Camera simultaneously?

How can i open both front camera and back camera at the same time in android? Is it possible?
I have tried tried but my application stops unfortunately.
Please Help..
On some devices, e.g. based on Snapdragon 805, you simply can. In other cases, the manufacturer chose to block the naïve approach, but the native camera app knows how to do it, and, with some reverse engineering effort, you can reproduce their approach (I had partial success with Samsung S4 before I lost interest in that project).
But on most of available phones, there is a physical restriction: the two cameras share the same bus, and cannot be opened simultaneously, no matter how skillful you are in software.

Using an external camera in Androids Google Hangouts app

I want to be able to access an external camera such as a GoPro from the Google Hangouts App for Android. Currently the app allows you to use either your front or rear facing camera. I would like to be able to select a wifi or bluetooth paired adventure camera. Is there a way to create an app that will interact with Androids camera APIs and the Hangouts app to allow this?
No, you cannot create an app that provides new Cameras to other applications.
The cameras available to your application are determined by the firmware on the device. If you create a custom ROM you might be able to get your own cameras to work with applications, but I am guessing that the Hangouts app will still not support it.
The Hangouts app is likely hard coded to only support front and back facing cameras, and thus would not show any additional cameras available to the user.

Communicating Between Digital Camera and Android Tablet

I was wondering if there was a known camera that was compatible with android OS's. (such as the nexus 7).
I am trying to essentially control a high resolution digial camera from the android tablet so that it can control when to take a picture, and then retrieve the picture.
This would require a camera with a public API.
I have experience in android programming but not too much in communicating between two different devices. So i was wondering what I should look into in order to achieve this.
Here is a camera that runs Android: http://news.yahoo.com/samsung-takes-aim-japanese-rivals-android-camera-034717081--finance.html
And since it is Android I guess that the API is public.
And the same camera with more info: http://www.samsung.com/uk/consumer/mobile-devices/galaxy-camera/galaxy-camera/EK-GC100ZWABTU and it does run what look like standard android apps.
If you want to control that from another Android device, I think that would make a very interesting project.
The other possibility is the Nikon external control SDK, but I have no idea what language that is in. That was used to build the excellent Sofortbild app for Macs, which controls most Nikon DSLRs. https://sdk.nikonimaging.com/apply/
There are Android applications which can control a set of cameras with added features. The one I'm using gives me the ability to take very specific timelapse shots which would be too complicated or even impossible to get through the camera's own controls. You can find many other control apps on the play store.
Unfortunately this one is only for Canon EOS cameras : DSLR Controller

Categories

Resources