Reputation: 819
I am looking for instructions on using Mobile Services for Xamarin.Forms? I am especially interested in how to get the device's current location. I know that there is sample code here, https://github.com/aritchie/acr-xamarin-forms, that showcases everything that you can do with the library, the only problem being it is way too complicated for a newbie to understand, and there are no comments
Links to any comprehensive tutes or sample code with comments would be appreciated. I have searched but have not come up with anything good.
Cheers
Upvotes: 1
Views: 3107
Reputation: 5203
If you want to find out a users location via shared code, look at the Geolocator plugin from the component store. super easy to use
Upvotes: 1
Reputation: 4746
There are a good set of examples for learning Xamarin.Forms with some descriptions at the following link http://blog.falafel.com/learning-xamarin/.
With Xamarin.Forms being rather new you will have to search around for good snippets etc however.
There are a number of projects for Xamarin.Forms in https://github.com/xamarin/xamarin-forms-samples. Try to looking at the following two for easier to understand short examples in Xamarin.Forms:-
https://github.com/xamarin/xamarin-forms-samples/tree/master/FormsGallery
https://github.com/xamarin/xamarin-forms-samples/tree/master/XAMLSamples
The examples are short enough that should help you to learn from them.
There is a specific map related example at the following that also shows your current location on a map that you may like to look at further also:-
Run the applications, make small modifications and experiment - a great way to learning.
Have fun!
Upvotes: 4