adk-toolkit exposes an
AdkManager to manage
UsbAccessory. In this way you don't need to fully understand some background concept about how ADK works but, as soon as possible, you should read ADK official documentation.
Keep the button pressed to open camera, release the button to capture the photo.