void HandleScanResult(ZXing.Result result)
        {
            string msg = "";

            if (!(result.Equals(null)) && (!string.IsNullOrEmpty(result.Text))) { 
                msg = "Found Barcode: " + result.Text;
                code = result.Text;

                barcode = Convert.ToInt64(code);
            }
            else
                msg = "Scanning Canceled!";

            this.RunOnUiThread(() => Toast.MakeText(this, msg, ToastLength.Short).Show());
        }