How to get device location using xamarin forms

2822
1
Jump to solution
06-13-2016 01:31 PM
MichaelMitchell1
New Contributor III

I'm very new to Xamarin and am attempting to mash forms and android examples to get an idea of what I need to do.  All I want is a dot of my location displayed on a map using xamarin forms.  I don't see code brackets so I put it at pastebin. ########### C# file using Esri.ArcGISRuntime; using Esri.ArcGISRuntime.Data; - Pastebin.com

I'm testing this on an android device and my error is "Default constructor not found for type Esri.ArcGISRuntime.Location.LocationDisplay.

Any guidance would be appreciated.

Thanks

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
MichaelMitchell1
New Contributor III

Heh, it ended up that my GPS was attempting to get a location and I simply had to go outside   Hard to do with a tablet plugged into your desktop.

I also removed all the location data in xaml.

View solution in original post

0 Kudos
1 Reply
MichaelMitchell1
New Contributor III

Heh, it ended up that my GPS was attempting to get a location and I simply had to go outside   Hard to do with a tablet plugged into your desktop.

I also removed all the location data in xaml.

0 Kudos