Beispiel #1
0
 private void InitView()
 {
     try
     {
         this.SetContentView(Resource.Layout.docskit_activity_web_view);
         mWebView = (WebView)ViewUtil.FindViewById(this, Resource.Id.external_webview);
         Intent intent = new Intent(Intent);
         string url    = intent.GetStringExtra("url");
         // Check the validity of the URL.
         if (IsUrlInValid(url))
         {
             Logger.Error(Tag, "url is invalid");
             Finish();
             return;
         }
         // Setting Web Parameters
         InitWebViewSettings();
         mWebView.LoadUrl(url);
     }
     catch (System.Exception e)
     {
         // The system webView is not installed or is disabled.
         Logger.Error(Tag, "initView error: " + e.Message);
         Finish();
     }
 }
Beispiel #2
0
 protected void InitActionBar()
 {
     mHwToolbar = (Toolbar)ViewUtil.FindViewById(this, Resource.Id.hwtoolbar);
 }