I am starting an activity called ChildActivity from ParentActivity as startActivityForResult(). Now, in the child activity I have different functionalities which require restarting the activity(ChildActivity). I am restarting the activity like
Intent intent = getIntent();
startActivityForResult(intent, CODE);
finish();
And also added in ChildActivity
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
if(resultCode == RESULT_OK && requestCode == CODE)
super.onActivityResult(requestCode, resultCode, data);
}
But anyway I am getting only one result to the ParentActivity with RESULT_CANCELLED when the ChildActivity restarts. I am unable to receive any further results after the ChildActivity restarts.
How can I get the further results.
Regards, pradeep_ch.