Re: [mono-android] A new activity with parameters of old activity

2011-06-23 Thread david.chhang
Thank you very much, it works !!! -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/A-new-activity-with-parameters-of-old-activity-tp4514263p4517805.html Sent from the Mono for Android mailing list archive at Nabble.com. ___

Re: [mono-android] A new activity with parameters of old activity

2011-06-22 Thread Greg Shackles
Your click callback signature isn't correct for that click event, try changing it to: private void bouton_Click(object sender, System.EventArgs e) { // do stuff } On Wed, Jun 22, 2011 at 11:37 AM, david.chhang wrote: > Thanks a lot, but it doesn't resolve the problem, there is an error here : >

Re: [mono-android] A new activity with parameters of old activity

2011-06-22 Thread david.chhang
Thanks a lot, but it doesn't resolve the problem, there is an error here : bouton.Click += new EventHandler(bouton_Click); The error is : (in french...sorry) Aucune surcharge pour 'bouton_Click' ne correspond au délégué 'System.EventHandler' I try to translate : Any overload for 'bouton_Click' ma

Re: [mono-android] A new activity with parameters of old activity

2011-06-22 Thread Greg Shackles
I don't think calling ToString() directly on the view is what you're looking to do. I don't know what view types attType and attVal are, if they were EditTexts, for example, you could some something like: intent.PutExtra("attType", FindViewById(Resource.Id.attType).Text); On Wed, Jun 22, 2011 at

Re: [mono-android] A new activity with parameters of old activity

2011-06-22 Thread david.chhang
thanks. But, I want to adapt to use with text field and button. So I want to keep value of the texts field and pass to another activity when I click on the button OK. I try it but it doesn't work : public class Activity0 : Activity { protected override void OnCreate(Bundle bundle)

Re: [mono-android] A new activity with parameters of old activity

2011-06-22 Thread Greg Shackles
You can stuff values into the intent when you go to start the new activity like this: https://github.com/gshackles/Sample-Projects/blob/master/MonoDroid/DatabaseDemo/DatabaseDemo/Activities/NoteListActivity.cs#L46 and then read it out from the new activity like this: https://github.com/gshackles

[mono-android] A new activity with parameters of old activity

2011-06-22 Thread david.chhang
Hello ! I want to know how to pass to another activity with variables's values of the first activity. Thanks -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/A-new-activity-with-parameters-of-old-activity-tp4514263p4514263.html Sent from the Mono for Android mailin