try {
device.initDevice();
Log.info("forcing obex mode");
device.obexOpenObexMode();
if (ui == null) {
ui = new InteractiveUserInterface();
ui.println("starting interactive mode, type 'exit' to exit, 'help' for help.");
}
try {
doCommandLoop(device, ui);
} catch (Exception e) {