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