[mono-android] Newbie - Retrieve info from ListActivity
Patrick Ribault
patrick.ribault at gmail.com
Mon Jun 25 11:51:59 UTC 2012
Great,
Thank you Craig !
Patrick.
De : monodroid-bounces at lists.ximian.com
[mailto:monodroid-bounces at lists.ximian.com] De la part de Craig Dunn
Envoyé : lundi 25 juin 2012 13:12
À : Discussions related to Mono for Android
Objet : Re: [mono-android] Newbie - Retrieve info from ListActivity
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-an
d-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-List
Activity-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/719e765a/attachment-0001.html>
More information about the Monodroid
mailing list