I am trying to use new camera api provided by android as camera2. But
CameraManager manager = (CameraManager) getActivity().getSystemService(Context.CAMERA_SERVICE);
showing error. Does any one have worked on this api.
Have been searching for results for could not find any thing yet.