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

Solutions on MaxInterview for how to send int value from one actvi to another in android by the best coders in the world

showing results for - "how to send int value from one actvi to another in android"
Christian
08 May 2017
1Intent myIntent = new Intent(A.this, B.class);
2myIntent.putExtra("intVariableName", intValue);
3startActivity(myIntent);
4
Jeannette
16 Jun 2020
1 Intent mIntent = getIntent();
2 int intValue = mIntent.getIntExtra("intVariableName", 0);
3
similar questions