Any Android Device Allowing Access to Front and Rear Cameras? - android

I realize this question has been asked and answered several times in the past. Many of the answers were out dated and a bit nebulous, so I have decided to ask again. I am working on a project that requires me access both the front and the rear cameras on an android device simultaneously.
I have tried this using the deprecated CAMERA api using Jens Grubert's AndroidDualCameraCapture. I have also tried the using camera2 API and the Samsung SCamera api on Samsung devices. I have run test apps across multiple devices including Moto X, S5, S6, S6 Edge, S7, S8, Pixel, and Lenovo Tango. In all of my test cases, I have not been able to access both the front and rear camera simultaneously.
I have scoured many of the previous questions on this topic:
Using both front and back cameras simultaneously android
access both front and back camera simultaneously on samsung galaxy devices
Is it possible to use front and back Camera at same time in Android
Access both back and front cameras simultaneously
Opening of Front Camera and Back Camera simultaneously?
Are there any Android Devices or any method can open front and back camera at the same time?
While many of these questions list older Phones that have been proven to work, such as the HTC M8, and Nexus 6, I'm wondering if anybody has successfully accessed both cameras on a modern Android Device. If you have, I would love to know the specific device that you have working and what API you are using.

I own the LG V20...it allows up to 4 separate screens. 2 front and 2 back

that's something devices independent and "rom" independent, I got a vivo x20 with android 7.0 work, but android 8.0 no way

Related

How do you create an android emulator with multiple back cameras

I am trying to work on stereo video capture using two back cameras of an android device. Since I don't have a device with android pie and two back cameras on hand, I've been trying to create an emulator with the above specifications. But I'm unable to find any resources on how I can create a hardware profile with two back cameras. Is it possible to do this in android studio 3.3
I think you are trying to use the new multi-camera API introduced for Android P.
The API search for the physical camera sensors/components, so i do not know if you can emulate all of its features without a physical device. But the best you can do is to emulate a Google Pixel 3 or a Huawei Mate 20 Pro (or Mate 20 series) phone, with a camera enabled.
Summary: I suggest you to emulate a Pixel 3 from Android Studio, and use the API, I think you can implement some easy functions such as zooming or differentiate between the physical and logical cameras. But if try to implement serious features, then you need to get a physical phone with multi-camera support from Android side.

Is it possible to read data from TOF (time-of-flight) sensor on Android?

Recent models of Android phones (Honor View 20, Huawei P30 Pro, Samsung Galaxy 10 5g) have TOF (time-of-flight) sensor. Is it possible to read it through some API or manufacturer SDK?
Possible for Huawei using AR Engine SDK
https://developer.huawei.com/consumer/en/ar
Excerpt of SDK Document AREnginesdk-sample-2.0.0.6\HUAWEI AR Engine Function Manual.doc
4.13 Scene mesh
Huawei AR Engine provides real-time output scene mesh
capability. The output includes the pose of the mobile phone in
space. The 3D mesh of the current camera view only supports the
specified Huawei models(Honor V20、P30Pro) that can obtain depth
information, and the supported scanning scene is static.
Excerpt of SDK Document AREnginesdk-sample-2.0.0.6\java\HUAWEI AR Engine SDK Interface Manual.docx
2.2.1.18. ARSceneMesh
• Description: The class used to return the tracking result when the environment Mesh is tracked. The result includes the Mesh vertex coordinates, the triangle subscript, and so on.
• Methods:
public ShortBuffer getSceneDepth()
// Get the depth image of current frame(optimized).
public int getSceneDepthHeight()
// Get the height of the depth image.
public int getSceneDepthWidth()
// Get the width of the depth image.
Possible on Huawei usinga camera2 API
https://github.com/google-ar/arcore-android-sdk/issues/120#issuecomment-535413944
This issue in ARCore contains a lot of information!
Also seems to be possible on S10 5G, but currently not on Note 10+
Excerpt of Night Vision / ToF Viewer app description:
This app is currently working only on Huawei P30 Pro, Honor View 20
and Samsung S10 5G. More devices will start working by future device
software updates.
New features
compatibility for Samsung S10 5G added (and maybe for other devices)
resolution dialog removed
support for front facing removed
Note: There was done a big research for Samsung Note10+ support,
however this device does not seem to support ToF for 3rd party apps.
Another interesting app:
3D scanner app using Huawei ToF sensors
https://play.google.com/store/apps/details?id=com.lvonasek.arcore3dscannerpro
Android does include OS level APIs to interact with non-traditional visual cameras. For Samsung S10 5G for example, you can access the camera with the Camera2 API and get a DEPTH16 frame directly. Here is an example: https://medium.com/swlh/working-with-the-3d-camera-on-the-samsung-s10-5g-4782336783c This works with all the Samsung devices, though the example only uses the front-facing ToF camera on the S10 5G. Both S10 and Note 10+ 5G have back facing ToF cameras as well.
I don't know if Huawei or OnePlus conform to the same API (they theoretically should and other answers indicate that they do to some extent).
Not possible as of now.
As Android has not included any such APIs in official latest SDKs.
Also those manufactures like Huawei, Samsung and OnePlus are using their customized OS sources and I don't think they have opened it out.
I was searching for the same and i came across this thread on Samsung community,
https://developer.samsung.com/forum/board/thread/view.do?boardName=SDK&messageId=371359&listLines=40&startId=zzzzz~&searchType=ALL&searchText=tof

Is the Sony Android camera API supported for all Android versions?

I'm wondering if the Sony Camera API has parts that are only supported by certain versions of Android.
I have the latest firmware (1.04) on my a6500 and running Android 7 on LineageOS (successor of CyanogenMod) for the Samsung S5 (KLTE version). This is what I get in my Play Memories app:
The shutter button works and images download to the phone. But that's it.
Additionally, when I use another app called DSLRDashboard, the settings show up and can be changed on the app, but they don't get changed or applied on the camera, and this is in full manual mode on the camera. Other modes don't work either.
What could be causing this? What would need to be added into a 3rd party ROM like LineageOS to get this working?
Really hoping that the official Sony developers that roam this site will be able to chime in.
So, a bit of a snafu on my part.
It's not enough to update just the firmware on the Sony camera. The Remote Control app installed in the camera must also be updated as well, which means hooking the camera up to WiFi and downloading the updates for that app. With that done, all the settings appear in the phone app and can the changed.

access both front and back camera simultaneously on samsung galaxy devices

I know this question has been asked before but its been a long time. Asking this question again to gather any new hacks/thoughts/approaches.
I need to access both front and back camera simultaneously.
So far I have tried implementations using android camera API (Dual Camera- by Jens) and camera2 API. Both implementations work fine on devices having hardware support(Dual Image Signal Processors) for dual camera feature.I have tested and both implementations works fine on HTC one M8(Snapdragon 801) & Xiaomi Mi4(Snapdragon 801).
Both implementations fails on Samsung s6 even though it's hardware capable (Exynos 7420 has dual ISP). Also, the default camera app on S6 supports dual camera mode.
Any ideas/advice on this ?
Thanks in advance.
Update:18/11/2015 --> Tried using the Samsung Galaxy Camera SDK but still no luck.
I had to implement the exact same thing in a previous project. I know the struggle, and I know how much code you have to write to make this work. Especially with Google providing TWO camera apis (camera and camera2).
Even though I got it working on some devices (like HTC M8) which basically had two Image Signal Processor (necessary to access both cameras at the same time), I had trouble with the Samsung devices that had this feature implemented in their native camera application.
Then I turned around and found out that Samsung provides different special APIs for its "very special" OS. What that means, is that for every special feature that Samsung has (like the finger print sensor, the S-pen, and soooo on), they provide a API for the developers to work with.
I found the SCamera API on their site here . They also provide very good documentation and it is ok to implement.
The question you need to ask yourself: is it really worth it to integrate yet another camera API in your app to make this work on Samsung devices as well? Take in consideration that the proportion of Samsung devices is really high.
My advice? Try and implement it in a different project and see how that goes. If you get it to work in a decent amount of time and it's not very complicated, then integrate it in your main project.
I hope this helps you. Have a great day and good luck!

Custom Camera Compatibility

I'm developing an app that uses a the android camera but not the default camera, I am using a custom one. Everything seem to be fine on my testing device (a local manufactured smart phone). But I'm having problems when it comes to high end devices like Samsung and Sony Xperia, some models from these devices are working fine but with other models no luck (specially large size devices). I guess that the errors are caused by different camera hardware since each android devices has its own hardware camera different with other devices (correct me if im wrong).
But I'm wondering how did INSTAGRAM do this trick that their camera is compatible with almost every android phones. Did they used any library or something? Please help me if you know how they did the trick. And is there any standards like on what device should I start developing so if I test my app on other high end device there would be no problems. Also please give me links of standard custom camera that works on every kind of android devices.

Categories

Resources