Camera2 API - Android

后端 未结 3 1208
离开以前
离开以前 2021-01-21 09:41

I am trying to use new camera api provided by android as camera2. But

CameraManager manager = (CameraManager) getActivity().getSystemService(Context.CAMERA_SERV         


        
3条回答
  •  天命终不由人
    2021-01-21 10:08

    you can view this example may this will help you

    Android Camera2Basic Sample

    This sample demonstrates the basic use of Camera2 API. Check the source code to see how you can display camera preview and take pictures. Pre-requisites

    Android SDK v21
    Android Build Tools v21.1.1
    Android Support Repository
    

    https://github.com/googlesamples/android-Camera2Basic

    Please check this Github Repo for Android L (API 21) Camera Preview Library PkmX/lcamera

提交回复
热议问题