Forum Xamarin.Android
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

Ibeacon findthemonkey

Hello all,

I'm quite new to Xamarin as well as C#. By using the Ibeacon APK FindTheMonkey, I am now trying to create my own bluetooth beacon app as a learning project. There is a lot of documentation available about this subject. For example, it is important to know that a beacon has 3 ranges and therefor you cannot calculate how far exactly a device is,.
What I would like to do is show some kind of message, when an app user leaves behind his beacon. It will be like a keyfinder. The problem is that I do not know how I can write something like "if a user's position goes from the state immediate to near to far, then a message shows up.".
I am not asking how to show a message, since I'm pretty sure I will be easy to find more about that in guides.

Sorry if my English isn't perfect. Can anyone help or show me where to look?

This is part of the FindTheMonkey/my App to give you an idea:

void RangingBeaconsInRegion(object sender, RangeEventArgs e)
if (e.Beacons.Count > 0)
var beacon = e.Beacons.FirstOrDefault();
var message = string.Empty;
var minor = beacon.Minor;
Console.WriteLine ("Minor is " + minor);

                case ProximityType.Immediate:
                UpdateDisplay("You found the beacon! " + "(" + minor + ")", Color.Red);
                case ProximityType.Near:
                    UpdateDisplay("You're getting close", Color.DarkOrange);
                case ProximityType.Far:
                UpdateDisplay("What planet are you on? (far)", Color.Orange);
                case ProximityType.Unknown:
                    UpdateDisplay("I don't know how close you are now..", Color.Yellow);
            previousProximity = beacon.Proximity;


Sign In or Register to comment.