private void FabOnClick(object sender, EventArgs eventArgs) { //View view = (View) sender; //Snackbar.Make(view, "Replace with your own action", Snackbar.LengthLong) // .SetAction("Action", (Android.Views.View.IOnClickListener)null).Show(); UI.Input.InputTxt(this, "Enter msg", (s) => { //RealmDb.Instance.AddMessage(s); RealmDb.AddMessage(s); }); }
private void ThreadTest() { Task.Run(async() => { try { await Task.Delay(100); //var r = RealmDb.GetRealmInstance(); //RealmDb.Instance.AddMessage("Test msg"); RealmDb.AddMessage("Test msg"); } catch (Exception exp) { System.Diagnostics.Debug.WriteLine(exp.Message); } }); }