using Android.App; using Android.Content.PM; using Android.OS; using Microsoft.Xna.Framework; namespace VirtualGamePad.Android { [Activity(Label = "VirtualGamePad", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.Keyboard | ConfigChanges.KeyboardHidden)] public class MainActivity : AndroidGameActivity { protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); var g = new VirtualGamePadGame(); SetContentView((g.Services.GetService(typeof(View))) as View); g.Run(); } } }