Displaying soft keyboard whenever AlertDialog.Builder object is opened
My code for opening an input dialog reads as follows: final AlertDialog.Builder alert = new AlertDialog.Builder(this); alert.setTitle("Dialog Title"); alert.setMessage("Request information"); LayoutInflater factory = LayoutInflater.from(this); final View textEntryView = factory.inflate(R.layout.edittextautotextlayout, null); final EditText inputBox = (EditText) textEntryView.findViewById(R.id.my_et_layout); alert.setView(inputBox); This works fine except that I have to tap the text entry line before the soft keyboard appears. Following the advice given here I have tried inserting: inputBox