How to make sure I get an Integer from a EditText
<p>I have this code:</p>

<pre><code>EditText value = ( EditText )findViewById( R.id.editbox );
Integer int_value = Integer.valueOf( value.getText().toString() );
</code></pre>

<p>It works great when there are a number in the EditText, but it FC my application when it is empty or have text, etc.</p>

<p>How can I make sure that int_value have/are a number?  I also tried parseInt but with the same result.</p>
