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