Answers for "how to send int value from one actvi to another in android"

0

how to send int value from one actvi to another in android

Intent mIntent = getIntent();
 int intValue = mIntent.getIntExtra("intVariableName", 0);
Posted by: Guest on August-30-2021
0

how to send int value from one actvi to another in android

Intent myIntent = new Intent(A.this, B.class);
myIntent.putExtra("intVariableName", intValue);
startActivity(myIntent);
Posted by: Guest on August-30-2021

Code answers related to "how to send int value from one actvi to another in android"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language