Beispiel #1
0
 protected override void OnActivityResult(int requestCode, Result resultCode, Intent data)
 {
     base.OnActivityResult(requestCode, resultCode, data);
     if (GoogleLogin.IsGoogleLogin && !GoogleLogin.MyGoogleApiClient.IsConnecting && GoogleLogin.IsIntentStarted)
     {
         GoogleLogin.MyGoogleApiClient.Connect();
     }
     else if (FacebookLogin.IsFacebookLogin)
     {
         FacebookLogin.Connect(requestCode, resultCode, data);
     }
 }
Beispiel #2
0
        protected override void OnCreate(Bundle bundle)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;
            SetTheme(Resource.Style.MainTheme);
            System.Net.ServicePointManager.DnsRefreshTimeout = 0;

            base.OnCreate(bundle);

            global::Xamarin.Forms.Forms.Init(this, bundle);
            Xamarin.FormsMaps.Init(this, bundle);
            ImageCircleRenderer.Init();
            UserDialogs.Init(this);

            LoadApplication(new App());
            SetColors();

            if (FacebookSdk.IsInitialized)
            {
                FacebookLogin.Handle();
            }

            GoogleLogin.Handle();
        }