I would like to be able to use the following code:
public void Green(View view) {
String cor3 = "verde";
Bundle parametros = new Bundle();
parametros.putString("verde",cor3);
Intent it = new Intent(this, Main3Activity.class);
parametros.putString("verde",cor3);
it.putExtras(parametros);
startActivity(it);
2nd screen
Intent intent = getIntent();
String verde = intent.getStringExtra("verde");
if ( cor=="verde"){
btn1.setBackgroundColor(Color.GREEN);
btn2.setBackgroundColor(Color.GREEN);
btn3.setBackgroundColor(Color.GREEN);
btn4.setBackgroundColor(Color.GREEN);
}
I run the emulated and do not funfa