예제 #1
0
        public NavigateToActivity()
        {
            _iBeaconManager = IBeaconManager.GetInstanceForApplication(this);

            _monitorNotifier = new MonitorNotifier();
            _rangeNotifier   = new RangeNotifier();

            _monitoringRegionsList = new List <Region>()
            {
                new Region("1", "f7826da6-4fa2-4e98-8024-bc5b71e08931", (Java.Lang.Integer) 13138, (Java.Lang.Integer) 34361),
                new Region("2", "f7826da6-4fa2-4e98-8024-bc5b71e08932", (Java.Lang.Integer) 3271, (Java.Lang.Integer) 18626),
                new Region("3", "f7826da6-4fa2-4e98-8024-bc5b71e08933", (Java.Lang.Integer) 4067, (Java.Lang.Integer) 4146),
                new Region("4", "f7826da6-4fa2-4e98-8024-bc5b71e08934", (Java.Lang.Integer) 62074, (Java.Lang.Integer) 10187),
                new Region("5", "f7826da6-4fa2-4e98-8024-bc5b71e08935", (Java.Lang.Integer) 18869, (Java.Lang.Integer) 15746),
                new Region("6", "f7826da6-4fa2-4e98-8024-bc5b71e08936", (Java.Lang.Integer) 56526, (Java.Lang.Integer) 64981),
                new Region("7", "f7826da6-4fa2-4e98-8024-bc5b71e08937", (Java.Lang.Integer) 26265, (Java.Lang.Integer) 32892),
                new Region("8", "f7826da6-4fa2-4e98-8024-bc5b71e08938", (Java.Lang.Integer) 10484, (Java.Lang.Integer) 33855),
                new Region("9", "f7826da6-4fa2-4e98-8024-bc5b71e08939", (Java.Lang.Integer) 42751, (Java.Lang.Integer) 26202),
            };

            _rangingRegionsList = new List <Region>()
            {
                new Region("1", "f7826da6-4fa2-4e98-8024-bc5b71e08931", (Java.Lang.Integer) 13138, (Java.Lang.Integer) 34361),
                new Region("2", "f7826da6-4fa2-4e98-8024-bc5b71e08932", (Java.Lang.Integer) 3271, (Java.Lang.Integer) 18626),
                new Region("3", "f7826da6-4fa2-4e98-8024-bc5b71e08933", (Java.Lang.Integer) 4067, (Java.Lang.Integer) 4146),
                new Region("4", "f7826da6-4fa2-4e98-8024-bc5b71e08934", (Java.Lang.Integer) 62074, (Java.Lang.Integer) 10187),
                new Region("5", "f7826da6-4fa2-4e98-8024-bc5b71e08935", (Java.Lang.Integer) 18869, (Java.Lang.Integer) 15746),
                new Region("6", "f7826da6-4fa2-4e98-8024-bc5b71e08936", (Java.Lang.Integer) 56526, (Java.Lang.Integer) 64981),
                new Region("7", "f7826da6-4fa2-4e98-8024-bc5b71e08937", (Java.Lang.Integer) 26265, (Java.Lang.Integer) 32892),
                new Region("8", "f7826da6-4fa2-4e98-8024-bc5b71e08938", (Java.Lang.Integer) 10484, (Java.Lang.Integer) 33855),
                new Region("9", "f7826da6-4fa2-4e98-8024-bc5b71e08939", (Java.Lang.Integer) 42751, (Java.Lang.Integer) 26202),
            };
        }
        public MainActivity()
        {
            _iBeaconManager = IBeaconManager.GetInstanceForApplication(this);

            _monitorNotifier = new MonitorNotifier();
            _rangeNotifier = new RangeNotifier();

            _monitoringRegion = new Region(monkeyId, UUID, null, null);
            _rangingRegion = new Region(monkeyId, UUID, null, null);
        }
        public MainActivity()
        {
            _iBeaconManager = IBeaconManager.GetInstanceForApplication(this);

            _monitorNotifier = new MonitorNotifier();
            _rangeNotifier   = new RangeNotifier();

            _monitoringRegion = new Region(monkeyId, UUID, null, null);
            _rangingRegion    = new Region(monkeyId, UUID, null, null);
        }
예제 #4
0
		public MainActivity()
		{
            temp.Add("R1");
            temp.Add("R2");
            temp.Add("R3");
            temp.Add("R4");
            temp.Add("R5");
            temp.Add("R6");
            temp.Add("R7");
            temp.Add("R8");
            temp.Add("R9");
            temp.Add("R10");


            for (int k = 0; k < numberBLE; k++)
            {
                beaconActive.Add("0");
            }

            for (int k = 0; k < numberBLE; k++)
            {
                beaconTime.Add(0);
            }

            for (int k = 0; k < numberBLE; k++)
            {
                beaconDist.Add(0.0);
            }
            


            _iBeaconManager = IBeaconManager.GetInstanceForApplication(this);


            _monitorNotifier = new MonitorNotifier();
			_rangeNotifier = new RangeNotifier();

			_monitoringRegion = new Region(monkeyId, UUID2, null, null);
			_rangingRegion = new Region(monkeyId, UUID2, null, null);

            //_monitoringRegion2 = new Region(monkeyId, UUID[2], null, null);
            //_rangingRegion2 = new Region(monkeyId, UUID[2], null, null);

        }
예제 #5
0
        public MainActivity()
        {
            temp.Add("R1");
            temp.Add("R2");
            temp.Add("R3");
            temp.Add("R4");
            temp.Add("R5");
            temp.Add("R6");
            temp.Add("R7");
            temp.Add("R8");
            temp.Add("R9");
            temp.Add("R10");


            for (int k = 0; k < numberBLE; k++)
            {
                beaconActive.Add("0");
            }

            for (int k = 0; k < numberBLE; k++)
            {
                beaconTime.Add(0);
            }

            for (int k = 0; k < numberBLE; k++)
            {
                beaconDist.Add(0.0);
            }



            _iBeaconManager = IBeaconManager.GetInstanceForApplication(this);


            _monitorNotifier = new MonitorNotifier();
            _rangeNotifier   = new RangeNotifier();

            _monitoringRegion = new Region(monkeyId, UUID2, null, null);
            _rangingRegion    = new Region(monkeyId, UUID2, null, null);

            //_monitoringRegion2 = new Region(monkeyId, UUID[2], null, null);
            //_rangingRegion2 = new Region(monkeyId, UUID[2], null, null);
        }