Could somebody give me an instruction, how to use an external camera in android app. My app need to use front/back and external cameras but there is no official external camera API I found some issues about this, but they don't have a full answer on how to implement this functionality and especially for android API 21+ versions. As I understand, Camera2 API supports external camera and I can use this API for displaying preview from usb-camera, but most of devices can not see connected external camera. How can I fix this and how can I get this camera id when receive cameras list
String[] cameraList = manager.getCameraIdList();
About "devices can not see usb-camera" I find a few answers : USB camera can not be connected to Android in general, because Android4.0 USB host function has some problems about isochronous transfer..
http://www.infinitegra.co.jp/en/solution/AndroidUsbCam.htm
and maby camera does not getting power from usb-port
https://stackoverflow.com/a/8986688/5219832
But it is written about the old camera API and I don't know, for example, how to get power from usb-port.
Please give me an answer for correctly working with external camera