Hi,
I am having trouble getting onActivityResult to run when I have an Activity
finish. The situation is:
Activity A (TabActivity)
Activity B (Activity in Activity A)
- set up in A like so:
intent = new Intent().setClass(this, B.class);
spec.setContent(intent);
- starts Activity C like so:
Intent i = new Intent(B.this, C.class);
startActivityForResult(i, REQUEST_CODE);
Activity C (separate Activity which setsResult and finishes)
- finishes like so:
Intent i = new Intent();
i.putExtra(EXTRA, id);
setResult(RESULT_CODE, i);
finish();
I can't seem to get onActivityResult to run in either A or B. I would have
thought it would be in B, as the Intent in B to start Activity C gives itself
as the context. although I'm guessing that this influences how onActivityResult
works.
Is this impossible or am I just missing something about how tabbed activities
work like this?
I guess I could go with views, but my tab Activity is going to start to get
really long as well as the onActivityResult... :) On the other hand I just
read that the Intent rather than View way of setting up TabActivities is not
that efficient. (thanks MM)
Any help would be greatly appreciated!
Regards,
Julius.
--
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