protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            SetContentView(Resource.Layout.TunnelingLayout);

            mUrlEditText                = FindViewById <EditText>(Resource.Id.url_text);
            mResponseText               = FindViewById <TextView>(Resource.Id.response_text);
            mAWWebView                  = FindViewById <AWWebView>(Resource.Id.webview);
            mWebViewButton              = FindViewById <Button>(Resource.Id.webview_button);
            mWebViewButton.Click       += OnButtonClick;
            mUrlConnectionButton        = FindViewById <Button>(Resource.Id.url_connection);
            mUrlConnectionButton.Click += OnButtonClick;
            mOkHttpClientButton         = FindViewById <Button>(Resource.Id.ok_http_client);
            mOkHttpClientButton.Click  += OnButtonClick;
            mAWWebView.SetWebViewClient(new AWWebViewClient());
        }
Ejemplo n.º 2
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            SetContentView(Resource.Layout.IntegratedAuthLayout);

            mUrlEditText                        = FindViewById <EditText>(Resource.Id.url_text);
            mResponseText                       = FindViewById <TextView>(Resource.Id.response_text);
            mAWWebViewButton                    = FindViewById <Button>(Resource.Id.aw_webview_button);
            mAWWebViewButton.Click             += OnButtonClick;
            mNtlmHttpUrlConnectionButton        = FindViewById <Button>(Resource.Id.ntlm_url_connection);
            mNtlmHttpUrlConnectionButton.Click += OnButtonClick;
            mAWOkHttpClientButton               = FindViewById <Button>(Resource.Id.aw_ok_http_client);
            mAWOkHttpClientButton.Click        += OnButtonClick;

            mAWWebView = FindViewById <AWWebView>(Resource.Id.aw_webview);
            // neglect ssl errors
            mAWWebView.SetWebViewClient(new AllowAllWebViewClient());
        }