title: How can I check if a string I have returned from a cursor is empty or null in an Android cursor?
body: <p>This is my code, it always falls into the else even when I know that the value going in (via debugger) is empty.  </p>
  
  <pre><code>name = cursor.getString(cursor.getColumnIndex("Genus")) + " " + cursor.getString(cursor.getColumnIndex("Species"));
  
  if(name != "" &amp;&amp; name != null)
      tv.setText(name);
  else
      tv.setText("Error");
  </code></pre>