SquareCamera icon indicating copy to clipboard operation
SquareCamera copied to clipboard

any future plans for supporting new camera api (apilevel 21)

Open slayer35 opened this issue 9 years ago • 4 comments

Hello in 21 ,google forces to use android.hardware.camera2 api , Do you have any plans for supporting both api level 21 and old version together? thanks.

slayer35 avatar Aug 26 '15 11:08 slayer35

No its not forcing. Its just a warning (recommendation) in Android Studio. If you use camera2 API, you can't run the app in API 20.. So there is no other way currently except you want to support API 21 only (which means about 18% of the devices)..

philipgiuliani avatar Aug 26 '15 11:08 philipgiuliani

Could you not use camera2 if the device is running API 21+ and revert to camera1 when its API 19 and below?

I haven't looked at the docs for either so I'm not sure how difficult this would be but it's certainly an option.

ScottCooper92 avatar Sep 02 '15 14:09 ScottCooper92

Yes, you could write the camera 2 times (maybe reuse layouts) and do an api check then. What i've heard the apis are completly different.

philipgiuliani avatar Sep 02 '15 16:09 philipgiuliani

I do have plans to include the new APIs in the coming months

boxme avatar Jul 23 '16 15:07 boxme