1
I have two Activity/classes, follow the boot of my first Activity where when I click goes to the second Activity:
public void onButtonClick(View v){
if(v.getId() == R.id.Busuarios){
Intent i = new Intent(Velocimetro.this,Usuarios.class);
i.putExtra("vel",maxima);
startActivity(i);
}
Now within my second Activity I have the following:
Intent i = getIntent();
velm = i.getDoubleExtra("vel",Math.round(vel.maxima));
What I need: In this second Activity I need to CHANGE the value of the MAXIMUM variable (there from the first Activity).
How I do?
I don’t understand well, you want to change the variable that is in the other Activity?
– Emerson Dallagnol
I gave an Edit to better answer.
– Felipe Moura Shurrab
Was any of the answer helpful? Don’t forget to choose one and mark it so it can be used if someone has a similar question!
– Sorack