Exemple #1
0
        private void MProfileTracker_mOnProfileChanged(object sender, OnProfileChangedEventArgs e)
        {
            if (e.mProfile != null)
            {
                ISharedPreferences prefs = this.GetSharedPreferences("MYPROFILE", FileCreationMode.Private);



                string name = e.mProfile.Name;

                string profilePicId = e.mProfile.Id;

                prefs.Edit().PutString("username", name).PutString("profilePic", profilePicId).Commit();

                //Bundle bundle = new Bundle();

                //bundle.PutString("username", name);

                //bundle.PutString("profilepic", profilePicId);

                //Intent homePage = new Intent(this,typeof(HomePage));
                //homePage.PutExtras(bundle);
                //StartActivity(homePage);


                //Android.Support.V7.App.AlertDialog.Builder alert = new Android.Support.V7.App.AlertDialog.Builder(this);
                //alert.SetTitle("User Facebook Info")
                //    .SetMessage("User Name"+name).SetPositiveButton("LOGOUT",(s, a)=>
                //    {
                //        LoginManager.Instance.LogOut();
                //    });
                //alert.Create();
                //alert.Show();
            }
            else
            {
                Android.Support.V7.App.AlertDialog.Builder alert = new Android.Support.V7.App.AlertDialog.Builder(this);
                alert.SetTitle("User Facebook Info")
                .SetMessage("Not loged in");
                alert.Create();
                alert.Show();
            }
        }
Exemple #2
0
 private void MProfileTracker_mOnProfileChanged(object sender, OnProfileChangedEventArgs e)
 {
     throw new NotImplementedException();
 }