Example #1
0
        protected override void OnResume()
        {
            base.OnResume();

            if (StartupTheme != db.Table <Setting> ().FirstOrDefault().Theme)
            {
                Refresh();
            }

            if (service == null)
            {
                var sericeIntent = new Intent(this, typeof(BackgroundService));
                serviceConnection = new ServiceConnection(this);
                BindService(sericeIntent, serviceConnection, Bind.AutoCreate);
            }

            OnBind();

            User user = db.Table <User>().FirstOrDefault();

            if (user != null && user.user != null)
            {
                UpdateMessagesScrollDown(user);
            }
        }
Example #2
0
        private void initializeAuthenticated(User user)
        {
            StartService(new Intent(this, typeof(BackgroundService)));

            if (service == null)
            {
                var sericeIntent = new Intent(this, typeof(BackgroundService));
                serviceConnection = new ServiceConnection(this);
                BindService(sericeIntent, serviceConnection, Bind.AutoCreate);
            }

            SetContentView(Resource.Layout.Main);
            ShowChats(user);
        }
Example #3
0
		private void initializeAuthenticated(User user) {
			StartService (new Intent (this, typeof(BackgroundService)));

			if (service == null) {
				var sericeIntent = new Intent (this, typeof(BackgroundService));
				serviceConnection = new ServiceConnection (this);
				BindService (sericeIntent, serviceConnection, Bind.AutoCreate);
			}

			SetContentView (Resource.Layout.Main);
			ShowChats (user);
		}
Example #4
0
		protected override void OnResume() {
			base.OnResume ();

			if (StartupTheme != db.Table<Setting> ().FirstOrDefault ().Theme) {
				Refresh ();
			}

			if (service == null) {
				var sericeIntent = new Intent (this, typeof(BackgroundService));
				serviceConnection = new ServiceConnection (this);
				BindService (sericeIntent, serviceConnection, Bind.AutoCreate);
			}

			OnBind ();

			User user = db.Table<User>().FirstOrDefault ();
			if (user != null && user.user != null) {
				UpdateMessagesScrollDown (user);
			}
		}