Embedded Web Reports View

mWebView = (WebView) findViewByld(R.id.webview);

WebSettings webSettings = mWebView.getSettings();

webSettings.setSavePassword(false);

webSettings.setSaveFormData(false);

webSettings.setJavaScriptEnabled(true);

webSettings.setSupportZoom(false);

mWebView.setWebChromeClient(new MyWebChromeClient()); mWebView.loadUrl(url);

<WebView android:id="@+id/webview" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1" />

private void showWebView () {

Intent iReportForm = new Intent(this, InternalWebView.class);

String reportDisplayUrl = PreferenceDB.getInstance(this).getPref(GReporterConstants.PREFKEY_REPORT_DISPLAY_URL);

iReportForm.putExtra("url", reportDisplayUrl);

startActivity(iReportForm);

Was this article helpful?

0 0

Post a comment