12345678910111213141516171819 |
- using Android.App;
- using Android.Content.PM;
- using Android.OS;
- using Microsoft.Xna.Framework;
- namespace NetworkStateManagement
- {
- [Activity(Label = "NetworkStateManagement", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.Keyboard | ConfigChanges.KeyboardHidden | ConfigChanges.UiMode | ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize)]
- public class MainActivity : AndroidGameActivity
- {
- protected override void OnCreate(Bundle savedInstanceState)
- {
- base.OnCreate(savedInstanceState);
- var game = new NetworkStateManagementGame();
- SetContentView((game.Services.GetService(typeof(View)) as View));
- game.Run();
- }
- }
- }
|