shiyinghan / UVCAndroid

Apache License 2.0
184 stars 50 forks source link

Returning back from Streaming Activity to Fragment #23

Open asadasivam opened 1 year ago

asadasivam commented 1 year ago

Use case is when i turning the USB power OFF / detaching the USB from android mobile, App has to return back to previous screen(Fragment) from current activity.

During this, running activity is getting disturbed and also received a SIGSEGV error. I cant able to get back (from activity screen) to previous screen(fragment). How to detect the USB power OFF / detach in running activity. I am using updated LIBUVC from this repository. I tried finish() method to return from current activity. It not worked. Because, before it being executing finish() method, i think USB power OFF happened. how to handle this?