├── .gitignore ├── MonoDroid ├── MonoMobile.Example │ ├── Activity1.cs │ ├── MonoMobile.Example.csproj │ ├── Properties │ │ ├── AndroidManifest.xml │ │ └── AssemblyInfo.cs │ └── Resources │ │ ├── AboutResources.txt │ │ ├── Drawable-hdpi │ │ └── Icon.png │ │ ├── Drawable-ldpi │ │ └── Icon.png │ │ ├── Drawable-mdpi │ │ └── Icon.png │ │ ├── Layout │ │ └── Main.axml │ │ ├── Resource.designer.cs │ │ └── Values │ │ └── Strings.xml ├── MonoMobile.Extensions │ ├── Device.cs │ ├── Geolocation.cs │ ├── MonoMobile.Extensions.csproj │ ├── Notification.cs │ └── Properties │ │ └── AssemblyInfo.cs └── MonoMobile.ExtensionsMonoDroid.sln ├── MonoTouch ├── MonoMobile.Extensions │ ├── Camera.cs │ ├── Device.cs │ ├── Geolocation.cs │ ├── MonoMobile.Extensions.csproj │ └── Notification.cs ├── MonoMobile.ExtensionsMonoTouch.sln └── MonoTouch.Example │ ├── ExampleList.xib │ ├── ExampleList.xib.cs │ ├── ExampleList.xib.designer.cs │ ├── Info.plist │ ├── Main.cs │ ├── MainWindow.xib │ ├── MainWindow.xib.designer.cs │ ├── MonoTouch.Example.csproj │ ├── README │ └── beep.wav ├── README.txt ├── Shared ├── ExtensionHelper.cs ├── IDevice.cs ├── IGeolocation.cs └── INotification.cs └── WindowsPhone ├── MonoMobile.Example ├── App.xaml ├── App.xaml.cs ├── ApplicationIcon.png ├── Background.png ├── Geolocation.xaml ├── Geolocation.xaml.cs ├── MainPage.xaml ├── MainPage.xaml.cs ├── MonoMobile.Example.csproj ├── Properties │ ├── AppManifest.xml │ ├── AssemblyInfo.cs │ └── WMAppManifest.xml └── SplashScreenImage.jpg ├── MonoMobile.Extensions ├── Geolocation.cs ├── MonoMobile.Extensions.csproj └── Properties │ └── AssemblyInfo.cs └── MonoMobile.ExtensionsWindowsPhone.sln /.gitignore: -------------------------------------------------------------------------------- 1 | bin 2 | Bin 3 | obj 4 | TestResults 5 | .DS_Store 6 | _ReSharper.* 7 | *.csproj.user 8 | *.resharper.user 9 | *.ReSharper.user 10 | *.resharper 11 | *.suo 12 | *.cache 13 | *~ 14 | *.swp 15 | *.pidb 16 | *.userprefs -------------------------------------------------------------------------------- /MonoDroid/MonoMobile.Example/Activity1.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | using Android.App; 4 | using Android.Content; 5 | using Android.Locations; 6 | using Android.Runtime; 7 | using Android.Views; 8 | using Android.Widget; 9 | using Android.OS; 10 | using MonoMobile.Extensions; 11 | 12 | namespace MonoMobile.Example 13 | { 14 | [Activity(Label = "MonoMobile Android Example", MainLauncher = true)] 15 | public class Activity1 : Activity 16 | { 17 | IGeolocation location; 18 | bool watching = false; 19 | string watchid = ""; 20 | TextView locationTextView; 21 | Button watchButton; 22 | 23 | protected override void OnCreate (Bundle bundle) 24 | { 25 | base.OnCreate (bundle); 26 | 27 | // Set our view from the "main" layout resource 28 | SetContentView (Resource.Layout.Main); 29 | 30 | LocationManager locationManager=(LocationManager) GetSystemService(LocationService); 31 | 32 | location = new Geolocation(locationManager); 33 | // 34 | // Get our button from the layout resource, 35 | // and attach an event to it 36 | Button getLocationButton = FindViewById