Thanks so much, Craig!

JP

On May 20, 2011, at 5:27 PM, Craig Dunn <[email protected]> 
wrote:

> from my very simple MonoDroid 'restaurant guide' sample
> https://github.com/conceptdev/RestaurantGuide/blob/master/RestGuide_Android/Activities/RestaurantActivity.cs
> 
>     public class RestaurantActivity : Activity
>     {
>         string restaurantName;
> 
>         protected override void OnCreate(Bundle bundle)
>         {
>             base.OnCreate(bundle);
> 
>             restaurantName = Intent.GetStringExtra("Name");
> // ...
>  
>  
> here the Intent you are referencing is not the Type but an instance property 
> of the Activity. It already 'contains' the intent extras data passed to the 
> activity. This is a .NET 'property syntax wrap' of the Java 
> Android.App.Activity.get_Intent() (i think:)
>  
> HTH
>  
> Craig
> @conceptdev
> 
>  
> On Sat, May 21, 2011 at 9:54 AM, Jerry Paxton <[email protected]> wrote:
> So, thanks to the list my first issue has been overcome. Thanks so much for 
> the assistance! I am currently attempting to send data between activities 
> using a Bundle and placing it into the 'extras' of the intent before 
> launching it. On the receiving end, however, I have not been able to figure 
> out the proper syntax of GetIntent.
> 
> Any thoughts as to what I might try next?
> 
> Intent i = Intent.GetIntent();
> Bundle b = i.GetExtras();
> 
> It seems to have problems both with the GetIntent function and the GetExtras 
> functions. Any help would be appreciated!
> 
> Thanks!
> 
> -JP
> 
> _______________________________________________
> Monodroid mailing list
> [email protected]
> 
> UNSUBSCRIBE INFORMATION:
> http://lists.ximian.com/mailman/listinfo/monodroid
> 
> 
> _______________________________________________
> Monodroid mailing list
> [email protected]
> 
> UNSUBSCRIBE INFORMATION:
> http://lists.ximian.com/mailman/listinfo/monodroid
_______________________________________________
Monodroid mailing list
[email protected]

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to