user555910 user555910 - 4 months ago 5
Android Question

Transfer data from one Activity to Another Activity Using Intents

I would like to be able to transfer data from one activity to another activity. How can this be done?


Through the below code we can send the values between activities

use the below code in parent activity

Intent myintent=new Intent(Info.this, GraphDiag.class).putExtra("<StringName>", value);

use the below code in child activity

String s= getIntent().getStringExtra(<StringName>);