how to change the android:inputType="phone" to android:inputType="textEmailAddress" from java?
<p>Im a beginner in android and need your advice:</p>

<p><strong>1.</strong> The app is about to send a message (sms or email) using two radio buttons (SMS or Email).</p>

<p><strong>2.</strong> When initiating, the SMS radio button will be checked and the EditText for the contact/receiver is on <code>android:inputType="phone"</code></p>

<p><strong>3.</strong> If i click on the EMAIL radio button i would like the EditText to be changed to <code>android:inputType="textEmailAddress"</code> </p>

<p>how can i do this from the MainActivity.java? </p>
