protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); var hostName = Intent.GetStringExtra("HostName"); var port = Intent.GetIntExtra("Port", -1); var bufferingOffset = Intent.GetDoubleExtra("BufferingOffset", 0.0); var showDebugInfo = Intent.GetBooleanExtra("ShowDebugInfo", false); settings = new ClientSettings(hostName, port, bufferingOffset, showDebugInfo); if (SupportedOpenGLVersion() < 3) throw new NotSupportedException("OpenGL ES 3.0 support is required"); view = new GLView1(this, settings); SetContentView(view); }
protected override void OnResume() { base.OnResume(); view = new GLView1(this, settings); SetContentView(view); }