Re: [mono-android] Using PutExtra on an Intent (not sure if I've hit a bug...)

2012-03-09 Thread devbuzz
Is the receiving activity's launchmode set to singletop by any chance? If so you might need to look at OnNewIntent: http://developer.android.com/reference/android/app/Activity.html#onNewIntent(android.content.Intent) -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/

Re: [mono-android] Using PutExtra on an Intent (not sure if I've hit a bug...)

2012-03-08 Thread Jonathan Pobst
I just meant you were checking foo instead of res here: Console.WriteLine("foo == {0}", foo); Jonathan On 3/8/2012 7:45 PM, Paul Johnson wrote: Hi, Not sure if it's a typo or your error, but you are outputting "foo" rather than "res". Other than that, your code looks like it should be work

Re: [mono-android] Using PutExtra on an Intent (not sure if I've hit a bug...)

2012-03-08 Thread Paul Johnson
Hi, Not sure if it's a typo or your error, but you are outputting "foo" rather than "res". Other than that, your code looks like it should be working. Um, "foo" is the token and res is the content, therefore at the other end isn't it retrieve the content given by the token? Or do I need to

Re: [mono-android] Using PutExtra on an Intent (not sure if I've hit a bug...)

2012-03-08 Thread Jonathan Pobst
Not sure if it's a typo or your error, but you are outputting "foo" rather than "res". Other than that, your code looks like it should be working. Jonathan On 3/8/2012 6:44 PM, Paul Johnson wrote: Hi, I'm trying to pass over a string using Intent.PutExtra but nothing is being received at th

[mono-android] Using PutExtra on an Intent (not sure if I've hit a bug...)

2012-03-08 Thread Paul Johnson
Hi, I'm trying to pass over a string using Intent.PutExtra but nothing is being received at the other end. Code for sending is simple enough res = "Hello, Vienna Calling" Intent i = new Intent(this, typeof(receiving_function)); i.PutExtra("foo", res); StartActivity(i); In the receiving metho