by your means ,I make these codes:
if you want to pass a intent data from C to A,you should first set
the intent data as the result for B.
then B set the intent data as reasult for A in B's onActivityResult()
function.
like this:
//C Activity:
//button press for pass intent data to A
Intent ctoadata;
setResult(RESULT_OK , ctoadata);
finish();
//B Activity:
//receive the result from C,then pass the result to A
protected void onActivityResult(int requestCode, int resultCode,
Intent data)
{
if(resultCode==RESULT_OK)
{
setResult(RESULT_OK , data);
finish();
}
}
//A Acitivity
//receive the result from B, now the data equals C.ctoadata intent
data.
protected void onActivityResult(int requestCode, int resultCode,
Intent data)
{
if(resultCode==RESULT_OK)
{
//data==C.ctoadata
//do other.....
}
}
if your codes like these,it should be successful.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---