@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR1)
    public static UsbManager getUsbManager(Context context) {
        return (UsbManager) context.getSystemService(Context.USB_SERVICE);
    }
@ TargetApi ( Build . VERSION_CODES . HONEYCOMB_MR1 ) public static UsbManager getUsbManager ( Context context ) { return ( UsbManager ) context . getSystemService ( Context . USB_SERVICE ) ; }
Get the {@link android.hardware.usb.UsbManager} service for this context.
@param context the context.
@return the {@link android.hardware.usb.UsbManager}