public SingleEntry()
 {
     InitializeComponent();
     lblStatus.Text = "Initializing...";
     _scanApiHelper = new ScanApiHelper.ScanApiHelper();
     _scanApiHelper.SetNotification(this);
 }
        private bool bDoGoodScan = true;                // used to alternate between a 'good' ack and a 'bad' ack for demo
#endif
        public SingleEntry()
        {
            InitializeComponent();
            lblStatus.Text = "Initializing...";
            _scanApiHelper = new ScanApiHelper.ScanApiHelper();
            _scanApiHelper.SetNotification(this);
// This is for the Host Acknowledgment feature. These lines can
// be safely removed from #if to the #endif from your application
// if this feature is not needed
#if HOSTACK
            _scanApiHelper.PostSetConfirmationMode((char)ScanAPI.ISktScanProperty.values.confirmationMode.kSktScanDataConfirmationModeApp, null);
#else
            _scanApiHelper.PostSetConfirmationMode((char)ScanAPI.ISktScanProperty.values.confirmationMode.kSktScanDataConfirmationModeDevice, null);
#endif
        }
 public SingleEntry()
 {
     InitializeComponent();
     lblStatus.Text = "Initializing...";
     _scanApiHelper = new ScanApiHelper.ScanApiHelper();
     _scanApiHelper.SetNotification(this);
     // This is for the Host Acknowledgment feature. These lines can
     // be safely removed from #if to the #endif from your application
     // if this feature is not needed
     #if HOSTACK
     _scanApiHelper.PostSetConfirmationMode((char)ScanAPI.ISktScanProperty.values.confirmationMode.kSktScanDataConfirmationModeApp, null);
     #else
     _scanApiHelper.PostSetConfirmationMode((char)ScanAPI.ISktScanProperty.values.confirmationMode.kSktScanDataConfirmationModeDevice, null);
     #endif
 }
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            // Set our view from the "main" layout resource
            SetContentView(Resource.Layout.Main);

            decodedDataField = FindViewById <EditText> (Resource.Id.editDecodedData);
            status           = FindViewById <TextView> (Resource.Id.textViewStatus);
//			button.Click += delegate {
//				button.Text = string.Format ("{0} clicks!", count++);

            _scanApi.SetNotification(this);
            _scanApi.Open();
            // we will take care of the UI thread issue in the called routine instead of here...
            //_timer.Elapsed+= (object sender, ElapsedEventArgs e) => InvokeOnMainThread (() => _scanApi.DoScanAPIReceive ());
            _timer.Elapsed += (object sender, ElapsedEventArgs e) => _scanApi.DoScanAPIReceive();
            _timer.Interval = 200;
            _timer.Start();


//			};
        }