You can do it through code as follow:
Applying UpperCase as the only filter to an EditText
Here we are setting the UpperCase filter as the only filter of the EditText. Notice that doing it this way you are removing all the previously added filters(maxLength, maxLines,etc).
editText.setFilters(new InputFilter[] {new InputFilter.AllCaps()});
Adding UpperCase to the existing filters of an EditText
To keep the already applied filters of the EditText (let's say maxLines, maxLength, etc) you need to retrieve the applied filters, add the UpperCase filter to those filters, and set them back to the EditText. Here is an example how:
InputFilter[] editFilters = editText.getFilters();
InputFilter[] newFilters = new InputFilter[editFilters.length + 1];
System.arraycopy(editFilters, 0, newFilters, 0, editFilters.length);
newFilters[editFilters.length] = new InputFilter.AllCaps();
editText.setFilters(newFilters);