Skip to content

Instantly share code, notes, and snippets.

@pedrogk
Last active August 29, 2015 14:21
Show Gist options
  • Save pedrogk/42384dd0536f55303a07 to your computer and use it in GitHub Desktop.
Save pedrogk/42384dd0536f55303a07 to your computer and use it in GitHub Desktop.
using System;
using Android.App;
using Android.Content.PM;
using Android.Runtime;
using Android.Views;
using Android.Widget;
using Android.OS;
using Xamarin.Forms.Platform.Android;
namespace SG.Droid {
[Activity(Label = "SG", MainLauncher = true,
ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation)]
public class MainActivity : AndroidActivity {
protected override void OnCreate(Bundle bundle) {
base.OnCreate(bundle);
Xamarin.Forms.Forms.Init(this, bundle);
SetPage(App.GetMainPage());
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment