Question: In my application i have an edittext in which a user can Alphanumeric string. Now the point is i want that whatever the aplhanumeric or alphabetic string he types that should be converted into the capital case.
For ex: if the edittext input is like:

> 
> sdhq8273dyp3
> 
> 
> 

In editext when user types it should be converted to captial case

> 
> SHHQ8273DYP3
> 
> 
> 

Is there any way. if in XML i am setting the Attribute **android:textAllCaps="true"** it is giving me the error. 
So how can we make the Editext aplhanumeric character to uppercase.

Answer: 
Take a look at <http://developer.android.com/reference/android/widget/TextView.html#attr_android:inputMethod>

You'll probably want 

```
android:inputMethod="textCapCharacters"

```
You can also set it programmatically and it is for api level 14 and above only. below it you have to manually implement it. 

```
editText.setInputType(android.text.InputType.TYPE_CLASS_TEXT
                   + android.text.InputType.TYPE_TEXT_FLAG_CAP_CHARACTERS);

```

I found your problem. `android:textAllCaps`is for textview and not edittext. see [here](https://developer.android.com/reference/android/widget/TextView.html#attr_android:textAllCaps)