diff options
Diffstat (limited to 'Penguloon/Activity1.cs')
| -rw-r--r-- | Penguloon/Activity1.cs | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Penguloon/Activity1.cs b/Penguloon/Activity1.cs new file mode 100644 index 0000000..ac9aa1e --- /dev/null +++ b/Penguloon/Activity1.cs @@ -0,0 +1,27 @@ +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.FullUser + , ConfigurationChanges = ConfigChanges.Orientation | ConfigChanges.Keyboard | ConfigChanges.KeyboardHidden | ConfigChanges.ScreenSize)] + public class Activity1 : Microsoft.Xna.Framework.AndroidGameActivity + { + protected override void OnCreate(Bundle bundle) + { + base.OnCreate(bundle); + var g = new Game1(); + SetContentView((View)g.Services.GetService(typeof(View))); + g.Run(); + } + } +} + |
