how to pass a float between activities in android studio

Solutions on MaxInterview for how to pass a float between activities in android studio by the best coders in the world

showing results for - "how to pass a float between activities in android studio"
Nicolás
22 May 2016
1Intent A2 = getIntent();
2        float Value = A2.getFloatExtra("rMainValue", 0);
3 
4        EditText mainResistorValue = (EditText)findViewById(R.id.upperToleranceValue);
5 
6        mainResistorValue.setText(Float.toString(Value));
7
Riccardo
12 Oct 2016
1Intent A2 = getIntent();
2        float Value = A2.getFloatExtra("rMainValue", 0);
3 
4        EditText mainResistorValue = (EditText)findViewById(R.id.upperToleranceValue);
5 
6        mainResistorValue.setText(Float.toString(Value));