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?
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?