protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); // Set the android global context if (PlatformAndroid.Context == null) { PlatformAndroid.Context = this; } // Remove the title bar RequestWindowFeature(WindowFeatures.NoTitle); // Unpack the files contained in the apk //await VirtualFileSystem.UnpackAPK(); // Create the Android OpenGl view GameView = new AndroidXenkoGameView(this); // setup the application view and xenko game context SetupGameViewAndGameContext(); // set up a listener to the android ringer mode (Normal/Silent/Vibrate) ringerModeIntentReceiver = new RingerModeIntentReceiver((AudioManager)GetSystemService(AudioService)); RegisterReceiver(ringerModeIntentReceiver, new IntentFilter(AudioManager.RingerModeChangedAction)); SetFullscreenView(); InitializeFullscreenViewCallback(); }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); // Set the android global context if (PlatformAndroid.Context == null) PlatformAndroid.Context = this; // Set the format of the window color buffer (avoid conversions) // TODO: PDX-364: depth format is currently hard coded (need to investigate how it can be transmitted) Window.SetFormat(Format.Rgba8888); // Remove the title bar RequestWindowFeature(WindowFeatures.NoTitle); // Unpack the files contained in the apk //await VirtualFileSystem.UnpackAPK(); // Create the Android OpenGl view gameView = new AndroidXenkoGameView(this); // setup the application view and xenko game context SetupGameViewAndGameContext(); // set up a listener to the android ringer mode (Normal/Silent/Vibrate) ringerModeIntentReceiver = new RingerModeIntentReceiver((AudioManager)GetSystemService(AudioService)); RegisterReceiver(ringerModeIntentReceiver, new IntentFilter(AudioManager.RingerModeChangedAction)); SetFullscreenView(); InitializeFullscreenViewCallback(); }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); // Set the android global context if (PlatformAndroid.Context == null) { PlatformAndroid.Context = this; } // Set the format of the window color buffer (avoid conversions) // TODO: PDX-364: depth format is currently hard coded (need to investigate how it can be transmitted) Window.SetFormat(Format.Rgba8888); // Remove the title bar RequestWindowFeature(WindowFeatures.NoTitle); // Unpack the files contained in the apk //await VirtualFileSystem.UnpackAPK(); // Create the Android OpenGl view gameView = new AndroidParadoxGameView(this); // setup the application view and paradox game context SetupGameViewAndGameContext(); // set up a listener to the android ringer mode (Normal/Silent/Vibrate) ringerModeIntentReceiver = new RingerModeIntentReceiver((AudioManager)GetSystemService(AudioService)); RegisterReceiver(ringerModeIntentReceiver, new IntentFilter(AudioManager.RingerModeChangedAction)); SetFullscreenView(); InitializeFullscreenViewCallback(); }
protected override void OnRun() { // set up a listener to the android ringer mode (Normal/Silent/Vibrate) ringerModeIntentReceiver = new RingerModeIntentReceiver((AudioManager)GetSystemService(AudioService)); RegisterReceiver(ringerModeIntentReceiver, new IntentFilter(AudioManager.RingerModeChangedAction)); // Set the android global context if (PlatformAndroid.Context == null) { PlatformAndroid.Context = this; } // Unpack the files contained in the apk //await VirtualFileSystem.UnpackAPK(); // setup the application view and stride game context SetupGameContext(); }