Skip to content

Instantly share code, notes, and snippets.

@matsukurou
Created July 5, 2015 09:31
Show Gist options
  • Save matsukurou/02d0cfedef7a14e5c640 to your computer and use it in GitHub Desktop.
Save matsukurou/02d0cfedef7a14e5c640 to your computer and use it in GitHub Desktop.
Xamarin.Formsでマップを初期化する (Android、MainActivity.cs)
[Activity(Label = "MapSample.Droid", Icon = "@drawable/icon", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation)]
public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsApplicationActivity
{
protected override void OnCreate(Bundle bundle)
{
base.OnCreate(bundle);
global::Xamarin.Forms.Forms.Init(this, bundle);
// Xamarin.Forms.Mapsの初期化
Xamarin.FormsMaps.Init(this, bundle);
LoadApplication(new App());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment