public void scan(bool connectCheck) { _location = getCurrentLocation(); _reciever.setLocation(_location); //register for broadcasts when device discovered var filter = new IntentFilter(BluetoothDevice.ActionFound); _activity.RegisterReceiver(_reciever, filter); //register for broadcast when discover has finished filter = new IntentFilter(BluetoothAdapter.ActionDiscoveryFinished); _activity.RegisterReceiver(_reciever, filter); Console.WriteLine("Getting current Paired Bluetooth Devices"); //get current paired devices _currentPaired = getCurrentPairedDevices(); Console.WriteLine("Discovering Bluetooth Devices."); //Discover New Devices _bluetooth.StartDiscovery(); }
public BTSearchResult(LOC location) { _location.Equals(location); }
public void deepCopy(LOC orig) { _latitude = orig._latitude; _longitude = orig._longitude; }
public void setLocation(LOC location) { _location = location; _location.deepCopy(location); }
public LOC getCurrentLocation() { LOC location = new LOC(); return location; }