Android在程序中打开网页

 

public class WebActivity extends Activity { private WebView m_webView; private String m_strCurURL; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.web); setTitle(R.string.app_title); Bundle bundle = this.getIntent().getExtras(); if (bundle != null) { m_strCurURL = bundle.getString("website_url"); m_webView = (WebView) findViewById(R.id.groupbuying_webview); m_webView.setWebViewClient(new WebViewClient() { }); m_webView.loadUrl(m_strCurURL); } else { } } }

你可能感兴趣的:(android,String,null,url,Class,website)