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 ??
            Asked
            
        
        
            Active
            
        
            Viewed 26 times
        
    -2
            
            
        - 
                    Do you want to start new activity when checkbox gets checked? – Malwinder Singh Jun 05 '15 at 16:32
1 Answers
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
