コード例 #1
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            Xamarin.Facebook.FacebookSdk.SdkInitialize(this);

            // Set our view from the "main" layout resource
            SetContentView(Resource.Layout.main_activity);

            toolbar         = FindViewById <AndroidX.AppCompat.Widget.Toolbar> (Resource.Id.toolbar);
            messengerButton = FindViewById <View> (Resource.Id.messenger_send_button);

            toolbar.SetTitle(Resource.String.app_name);

            if (this.Intent.Action == Intent.ActionPick)
            {
                threadParams = MessengerUtils.GetMessengerThreadParamsForIntent(this.Intent);
                picking      = true;
            }

            messengerButton.Click += MessengerButton_Click;
        }