I have two activity / classes, follow the button of my first activity where when I click go 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 inside 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 do I do it?