EditText editText = (EditText)findViewById(R.id.edit_text); editText.setText("This sets the text.", TextView.BufferType.EDITABLE);