How do I make a button execute code only if text is entered in a field?
<p>I'm making an app for Android, and if you click the calculate button on one of the pages, without anything entered in the text boxes, it force closes. Some users were wondering if this could be fixed, so I was wondering if there was a way to make the <code>onClickListener</code> execute only if there is something inside the <code>EditText</code>.</p>
