Authentication Android
<p>I want to create a static test in my authentication but when I click on button "Valider" nothing happen, instead when I remove the "if" condition and I click on "valider" button the next activity start. I think there is a problem when I put a condition for testing but I don't know what's it. Can you help ? thanks</p>

<pre><code>public class TabAdmin extends Activity implements View.OnClickListener{
private EditText username;
private EditText password;

public String user_name;
public String pass_word;
private Button valider;

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);


setContentView(R.layout.authen);

username = (EditText) findViewById(R.id.login);
password = (EditText) findViewById(R.id.pwd);

valider = (Button) findViewById(R.id.valider);
 valider.setOnClickListener((OnClickListener) this);
 }           
 public void onClick(View v) {              
     if (v == valider) {

    user_name = username.getText().toString();
     pass_word = password.getText().toString();
  if((user_name=="admin")&amp;&amp;(pass_word=="admin"))

     { 


        Intent goToNextActivity = new Intent(getApplicationContext(), MenuAdmin.class);
     startActivity(goToNextActivity);
     }           

 }
</code></pre>

<p>}</p>
