-2

I have a Check Box and if it has been checked, an integer variable (result=0) is defined and passed to another activity. how to do that ??

1 Answers1

0
Intent secondIntent=new Intent(this,SecondClass.class);
secondIntent.putExtra("Name",yourvalue);

in SecondClass get the value like this

getIntent().getIntExtra("Name",-1);
Durga Mohan
  • 1,110
  • 9
  • 11