+
+ public static int open(String name, int mode)
+ {
+ try {
+ return open(manager, name, mode);
+ } catch (Exception e) {
+ Log.w("UsbHelper", "caught exception " + e);
+ return -1;
+ }
+ }
+
+ public static void startEventMonitor(UsbEventListener listener)
+ {
+ try {
+ startEventMonitor(context, manager, listener);
+ } catch (Exception e) {
+ Log.w("UsbHelper", "caught exception " + e);
+ }
+ }
+
+ public static void stopEventMonitor()
+ {
+ try {
+ stopEventMonitor(context);
+ } catch (Exception e) {
+ Log.w("UsbHelper", "caught exception " + e);
+ }