Can two apps access to camera simultaneously??

Heize H 1 Reputation point
2022-11-14T02:09:40.237+00:00

In Android phone version 5.0 -6.0which was released 2015-2016,can two apps access to camera at the sametime? I mean when one is using camera at background the other can access to camera?

Is it depending on how the apps were coded??
Some people say it depends on how the applications is coded.

Also the app “sound assistant” makes 2 music apps using speaker at the same time.
Then how about camera???

I want to know if the phone is rooted , there would be a change in answer:)

++ i saw a comment saying

“Our current frame work does support limited support for multi-app access to the camera.
We allow one (and only one) "controlling" app to the camera, but an arbitrary number of "shared" apps to access the same camera.
There are some limitations for "shared" apps:

  1. No camera controls Exposure/White
    Balance/Focus, etc...).
  2. No media type selection (can't choose VGA vs.
    720p vS. 1080p, etc...).
  3. Only access to a video stream by default, photo pins are blocked (any photo operation will use a video frame instead).
    The "controlling" app decides what media type to use and can set any camera control. Any of the sharing app can register to be notified if a controlling app releases control of the camera, at which point, the sharing app can re-open the camera in controlling mode.
    The mechanism described above does not require any copying of the captured frame so the overhead is minimal.”

What this comment means? does it say 2apps can access to camera at the same time anyway in android??

Windows 10 Compatibility
Windows 10 Compatibility
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Compatibility: The extent to which hardware or software adheres to an accepted standard.
453 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. S.Sengupta 14,811 Reputation points MVP
    2023-08-04T00:21:34.5666667+00:00

    Starting from Android 9 (API level 28) and later, multiple apps can access the camera simultaneously. This feature is known as "camera2 multi-camera" or "concurrent camera access." However, for this to work, the device must have multiple camera sensors (e.g., front and back cameras) and support this capability.

    With camera2 multi-camera support, two or more apps can open and access different camera sensors simultaneously

    Kindly see:

    Multi-camera API

    0 comments No comments