Ejemplo n.º 1
0
        public override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            if (AppInstanceManager.Instance.getMsgAdapter() == null)
            {
                _msgAdapter = new MessageAdapter(this.Activity, _logMessages);
                AppInstanceManager.Instance.setMsgAdapter(_msgAdapter);
            }
            else
            {
                _msgAdapter = AppInstanceManager.Instance.getMsgAdapter();
            }

            if (SdlService.instance == null)
            {
                var intent = new Intent((MainActivity)this.Activity, typeof(SdlService));
                ((MainActivity)this.Activity).StartService(intent);
            }
        }
Ejemplo n.º 2
0
 public void setMsgAdapter(MessageAdapter messageAdapter)
 {
     this._msgAdapter = messageAdapter;
 }