android syscalls: open/hide keyboard, open dialog, fix npe