This is a simple password app, and it's not really working, i'm not sure what most of this sentences mean. I have some knowledge in c++ but this is new to me. Can somebody correct me? I can't find a site that explains this well.
public void addListenerOnButton(){
geslo = (EditText) findViewById(R.id.password);
Gumb = (Button) findViewById(R.id.Gump);
Gumb.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
String text="banana";
if(geslo.toString()==text){
Intent newactivity= new Intent(MyActivity.this,MainDatoteka.class);
startActivity(newactivity);
}
}
});
}