Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Complete Custom Camera2 example

I need to create a custom camera in Android that supports both higher and lower version.I am new to android.I have research a lot I have the code ready for hardware camera i.e. for the api less than 21.But I am finding hard time searching the code that supports camera hardware 2.

like image 882
user7144720 Avatar asked Apr 22 '17 12:04

user7144720


1 Answers

The old deprecated camera API still works on Android 21 and above. But you are right, using the new API is preferable, and gives you more options and better performance.

You can start with the official Camera2Basic sample.

like image 103
Alex Cohn Avatar answered Oct 11 '22 12:10

Alex Cohn