// Capture reference to the EditText widget EditText myEditText = (EditText) findViewById(R.id.edit_text_id); // Programmatically select all text within the widget myEditText.selectAll();This code selects all the text within the `EditText` widget with the reference ID of `edit_text_id`. Once the text is selected, a user could then delete or replace it easily. The package library for the `EditText` widget is `android.widget`.