using Android.App; using Android.Content.PM; using Android.OS; using Android.Views; namespace Penguloon { [Activity(Label = "Penguloon" , MainLauncher = true , Icon = "@drawable/icon" , Theme = "@style/Theme.Splash" , AlwaysRetainTaskState = true , LaunchMode = Android.Content.PM.LaunchMode.SingleInstance , ScreenOrientation = ScreenOrientation.Landscape , ConfigurationChanges = ConfigChanges.Orientation | ConfigChanges.Keyboard | ConfigChanges.KeyboardHidden | ConfigChanges.ScreenSize)] public class Activity : Microsoft.Xna.Framework.AndroidGameActivity { protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); var g = new Main(Resources); SetContentView((View)g.Services.GetService(typeof(View))); g.Run(); } } }