Back to project page Interkassa_android.
The source code is released under:
Apache License
If you think the Android project Interkassa_android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.interkassa.helpers; /*from www. ja va 2s. c o m*/ import org.androidannotations.annotations.AfterViews; import org.androidannotations.annotations.EActivity; import org.androidannotations.annotations.Extra; import org.androidannotations.annotations.ViewById; import android.annotation.SuppressLint; import android.app.Activity; import android.webkit.WebSettings; import android.webkit.WebView; import android.webkit.WebViewClient; @EActivity(resName="webview_activity") public class WebViewActivity extends Activity{ @ViewById(resName="pay") WebView pay; @Extra String html; @Extra String baseUrl; @SuppressLint("SetJavaScriptEnabled") @AfterViews void setStuff () { WebSettings webSettings = pay.getSettings(); webSettings.setJavaScriptEnabled(true); webSettings.setDomStorageEnabled(true); webSettings.setLoadWithOverviewMode(true); webSettings.setLoadsImagesAutomatically(true); pay.getSettings().setBuiltInZoomControls(true); webSettings.setLoadWithOverviewMode(true); pay.getSettings().setUseWideViewPort(true); pay.setWebViewClient(new WebViewClient()); pay.loadDataWithBaseURL(baseUrl, html, "text/html", "CP-1251", ""); } }