Move USB logic from main activity to usb activity