[mono-android] Newbie - Retrieve info from ListActivity
Craig Dunn
craig.dunn at gmail.com
Mon Jun 25 11:11:51 UTC 2012
I think you want StartActivityForResult, SetResult and OnActivityResult
I know I have an example of that somewhere, but I can't find it right now.
In the meantime check this SO post
http://stackoverflow.com/questions/4064126/android-startactivityforresult-and-finish-with-video
It's not a complete code example - but if you call StartActivityForResult
in A to open B, and implement OnActivityResult in A... and in B.listclick
call SetResult before Finish then you should get it working...
HTH
craig
On Mon, Jun 25, 2012 at 8:29 PM, Pattt <patrick.ribault at gmail.com> wrote:
> Hi,
>
> I'm a mono newbie, so please excuse if my question is trivial.
>
> I do have an activity A where a button opens a ListActivity B (kind of
> dialog box)
> When user click on the list, I can retrieve the selected item,
> I then close B with this.finish, this displays back A
>
> The question is, how do I retrieve in A:
> - that B just closed
> - the selected item in B
>
> Thank you in advance,
> Patrick.
>
> --
> View this message in context:
> http://mono-for-android.1047100.n5.nabble.com/Newbie-Retrieve-info-from-ListActivity-tp5710504.html
> Sent from the Mono for Android mailing list archive at Nabble.com.
> _______________________________________________
> Monodroid mailing list
> Monodroid at lists.ximian.com
>
> UNSUBSCRIBE INFORMATION:
> http://lists.ximian.com/mailman/listinfo/monodroid
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/monodroid/attachments/20120625/e255cfbf/attachment.html>
More information about the Monodroid
mailing list