using Android.App; using Android.Content.PM; using Android.OS; using Android.Views; using Microsoft.Xna.Framework; using WindowsPhoneSpeedyBlupi; using static WindowsPhoneSpeedyBlupi.Xna; namespace WindowsPhoneSpeedyBlupi { [Activity( Label = "@string/app_name", MainLauncher = true, Icon = "@drawable/icon", AlwaysRetainTaskState = true, LaunchMode = LaunchMode.SingleInstance, ScreenOrientation = ScreenOrientation.ReverseLandscape, ConfigurationChanges = ConfigChanges.Orientation | ConfigChanges.Keyboard | ConfigChanges.KeyboardHidden | ConfigChanges.ScreenSize )] public class Activity1 : AndroidGameActivity { private Game1 _game; private View _view; protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); Env.init(XnaImpl.MonoGame, Platform.Android); _game = new Game1(); _view = _game.Services.GetService(typeof(View)) as View; SetContentView(_view); _game.Run(); } } }