Android - help validating EditText - decimal point
<p>I am still somewhat not so great with java, so I am having trouble figuring this one out.  I am doing some math on the value of two EditText fields.  I check to make sure they are not empty.  I also want to make sure they are valid values.  i.e.  I do not want someone to be able to type a "."  in one field, then a number in another.  I can't figure out how to validate for the ".".</p>

<p>I have tried this, but it didn't work.  My app just crashes. </p>

<pre><code>    if (editText1.getText().toString().equals(".") || editText2.getText().toString().equals(".")) 
    return;
</code></pre>

<p>Any solutions are most welcome!</p>
