Transfer data from one Activity to Another Activity Using Intents

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);
startActivity(myintent);

use the below code in child activity

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

Leave a Comment