Created
July 5, 2015 09:31
-
-
Save matsukurou/02d0cfedef7a14e5c640 to your computer and use it in GitHub Desktop.
Xamarin.Formsでマップを初期化する (Android、MainActivity.cs)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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