Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

how to pass a float between activities in android studio

Intent A2 = getIntent();
        float Value = A2.getFloatExtra("rMainValue", 0);
 
        EditText mainResistorValue = (EditText)findViewById(R.id.upperToleranceValue);
 
        mainResistorValue.setText(Float.toString(Value));
Source by coderanch.com #
 
PREVIOUS NEXT
Tagged: #pass #float #activities #android #studio
ADD COMMENT
Topic
Name
6+9 =