Back to project page guerrillaprose.
The source code is released under:
GNU General Public License
If you think the Android project guerrillaprose 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 de.handler.mobile.android.bachelorapp.app.ui; /*from www .j a v a 2 s . com*/ import android.support.v7.app.ActionBar; import android.webkit.WebView; import android.webkit.WebViewClient; import org.androidannotations.annotations.AfterViews; import org.androidannotations.annotations.EActivity; import org.androidannotations.annotations.ViewById; import de.handler.mobile.android.bachelorapp.app.R; /** * Displays WebView with help */ @EActivity(R.layout.activity_web) public class WebActivity extends BaseActivity { public static final String URI = "activity_web_uri"; @ViewById(R.id.activity_web_web_view) WebView webView; @AfterViews void init() { ActionBar actionBar = this.setupActionBar(); actionBar.setDisplayHomeAsUpEnabled(true); String uri = getIntent().getStringExtra(URI); if (uri != null && !uri.equals("")) { webView.getSettings().setUserAgentString("Android"); webView.setWebViewClient(new WebViewClient()); webView.loadUrl(uri); } } }