Exemple #1
0
 public void InitWebSocket()
 {
     webSocket = new WebSocket("ws://10.0.3.2:8080/");
     webSocket.Open();
     webSocket.MessageReceived += WebSocket_MessageReceived;
     FragmentManagerXO.InitWebSocket(webSocket);
 }
Exemple #2
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            FragmentManagerXO.SetActivity(this);
            FragmentManagerXO.SetUiThread(Thread.CurrentThread);

            SetContentView(Resource.Layout.Main);

            InitWebSocket();

            FragmentTransaction transaction = FragmentManager.BeginTransaction();

            transaction.Replace(Resource.Id.main_activity_fragment_placeholder, FragmentManagerXO.regFrag);
            transaction.Commit();
        }
Exemple #3
0
 protected override void OnDestroy()
 {
     base.OnDestroy();
     FragmentManagerXO.SendLogout();
 }