saki4510t / UVCCamera

library and sample to access to UVC web camera on non-rooted Android device
2.96k stars 1.19k forks source link

Permission pop-up giving illegal agruement exception in TargetSdk>27 #701

Open Thejas775 opened 2 months ago

Thejas775 commented 2 months ago

I was trying develop an application with targetSkd>27 as I want to publish to play store. I have a activity that calls the following in the onCreate mUVCCameraView = findViewById(R.id.textureview); mUVCCameraView.setCallback(this); mCameraHelper = UVCCameraHelper.getInstance(); mCameraHelper.setDefaultFrameFormat(UVCCameraHelper.FRAME_FORMAT_MJPEG); mCameraHelper.initUSBMonitor(this, mUVCCameraView, listener); Irrespective of I have connected the USB Camera or not, igt gives the IllegalArugmentException even when I open the activity. Any solutions?