After Android v21, There is new api, Camera2, to replace the old camera api. These is a sample repo to demonstrate created by Google : https://github.com/googlesamples/android-Camera2Basic . This repo is fetch the camera-related code and create a CameraUtil object to help you use the Camera2 api much easier.
這個專案是參考 Google Sample Code : https://github.com/googlesamples/android-Camera2Basic , 展示新API Camera2
的用法。基本上 Code 跟 Google 一樣,但是有把相關的Code包成CameraUnit
物件來使用
請至 wiki 觀看 細節介紹