title: Check value in text view
body: <p>I have a if condition for check value in textview but it still happen only else condition </p>
  
  <p>what I did wrong, why it doesn't have if condition even if I have set lang=space </p>
  
  <pre><code>private void setLangTitle() {
      lang.setText(" ");
      db.open();
      Cursor cc = db.getLangAct();
      cc.moveToFirst();
      int index = cc.getColumnIndex(DBAdapter.KEY_LANG);
      while (cc.isAfterLast() == false) {
  
          if(lang.equals(" ")){
              lang.append("p"+cc.getString(index));
              cc.moveToNext();
          }
          else {
              lang.append("/" + cc.getString(index));
              cc.moveToNext();
          }
      }
      db.close();
  }
  </code></pre>