#if ANDROID using Android.App; using Android.Content.PM; using Android.OS; using Android.Views; using Microsoft.Xna.Framework; namespace GooCursor { [Activity( Label = "GooCursor", MainLauncher = true, AlwaysRetainTaskState = true, LaunchMode = LaunchMode.SingleInstance, ScreenOrientation = ScreenOrientation.FullUser, ConfigurationChanges = ConfigChanges.Orientation | ConfigChanges.Keyboard | ConfigChanges.KeyboardHidden | ConfigChanges.ScreenSize)] public class MainActivity : AndroidGameActivity { private Game1 game; private View gameView; protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); game = new Game1(); gameView = game.Services.GetService(typeof(View)) as View; SetContentView(gameView); game.Run(); } } } #endif