_threadRunning = true;
// Hide the virtual keyboard so the user can see status
// updates.
if (VirtualKeyboard.isSupported()) {
final VirtualKeyboard keyboard = getVirtualKeyboard();
if (keyboard.getVisibility() != VirtualKeyboard.HIDE) {
keyboard.setVisibility(VirtualKeyboard.HIDE);
}
}
} else {
Dialog.ask(Dialog.D_OK, "Please enter a valid host name");
}