[mono-android] selecting contacts
Jonathan Pryor
jpryor at novell.com
Thu Mar 31 14:42:03 EDT 2011
On Mar 31, 2011, at 2:30 PM, John Murray wrote:
> But it seems to completely ignore the OnActivityResult method
You haven't provided the source for your other activity, thus two questions:
1. Does your other activity call Finish()?
2. Does your other activity call Activity.SetResult()?
The documentation implies [0, 1] that Activity.OnActivityResult() is invoked before Activity.OnResume() [2] is invoked, which is called when the Activity may be visible to the user. Thus, Activity.OnActivityResult() can't be invoked if there is a foreground activity (i.e. it hasn't called Activity.Finish()), and the launched activity should call Activity.SetResult() unless a value of Result.Canceled is sufficient.
- Jon
[0] http://docs.mono-android.net/index.aspx?link=M%3aAndroid.App.Activity.OnActivityResult
[1] http://developer.android.com/reference/android/app/Activity.html#onActivityResult(int, int, android.content.Intent)
[2] http://docs.mono-android.net/index.aspx?link=M%3aAndroid.App.Activity.OnResume
More information about the Monodroid
mailing list