private Button btnLogin;
private EditText txtPub;
private EditText txtPriv;
final Context context = this;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.loginfirst);
btnLogin = (Button)findViewById(R.id.btnEnter);
btnLogin.setOnClickListener(this);
txtPub = (EditText)findViewById(R.id.textPublic);
txtPriv = (EditText)findViewById(R.id.textPrivate);
}
@Override
public void onClick(View arg0) {
Intent intent = new Intent(context, WebViewActivity.class);
startActivity(intent);
}
WebViewActivity.classで
private WebView webView;
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.webview);
webView = (WebView) findViewById(R.id.web_view);
webView.getSettings().setJavaScriptEnabled(true);
webView.loadUrl("http://url.com/txtpub+txtprive");
}
edittxt txtpubとtxtprivの値を取得し、上記のURLのwebviewactivityクラスに入れるにはどうすればよいですか?txtpubとtxtprivの値をURLに入れたかったのです。お願い助けて