Retrieving entered text in field (android help)
<p>I have this code for a username field for an Android app.  I would like to validate the field to see if it is empty. Here is my code:</p>

<pre><code>View a = findViewById(R.id.authentication);
(a.toString().equals(""))
</code></pre>

<p>I am guessing that you cannot use view to get the data entered by the user. What would be the best way to see if these fields are empty?</p>
