title: result of if condition that check text of textView
body: <p>there are some problem in result of if condition that check the text of textView</p>
  
  <p>this is the code for more explain</p>
  
  <p>times.xml</p>
  
  <pre><code>&lt;TextView
              android:id="@+id/tiMinutesView"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_gravity="center"            
              android:text="--"
              android:textColor="#3134E8" /&gt;
  </code></pre>
  
  <p>TimesActivity.java</p>
  
  <pre><code>   TextView minView;                                
     minView = (TextView) v.findViewById(R.id.tiMinutesView);
  
      if (minView.getText().toString().trim() != "--") {
  
          Toast.makeText(TimesActivity.this,
                  "OK",
                  Toast.LENGTH_LONG).show();
      } else {
          Toast.makeText(TimesActivity.this,
                  "NO", Toast.LENGTH_LONG)
                  .show();
      }
  </code></pre>
  
  <p>Now it is supposed to return false and display NO because it is equal "--" actually, but it returns true and display OK</p>
  
  <p>What is the problem ???</p>