title: if("a" == "a") not working
body: <pre><code>public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.beta);
  
      ed_code = (EditText) findViewById(R.id.et_beta_01);
      bu_ok = (Button) findViewById(R.id.bu_beta);
  
      bu_ok.setOnClickListener(new OnClickListener() {    
          @Override
          public void onClick(View v) {
                  // TODO Auto-generated method stub
              String code = ed_code.getText().toString();
              String target = "vsi8";
  
              Log.v(TAG, code+"="+target);
  
              if(code == target){
                      Intent intent = new Intent(BetaCheck.this, AppMenu.class);
                  startActivity(intent);
              }
              else {
                      Toast.makeText(getApplicationContext(), "wrong", Toast.LENGTH_SHORT).show();
                      ed_code.setText("");
              }
          }
      });
  }
  </code></pre>
  
  <p>It seems that the the if statement does not understand that the 2 values are equal.</p>
  
  <p>Thanks for the help</p>