[Solved] webview load url from input text in another class [duplicate]


send data from inputAddrss,

Intent intent = new Intent(getBaseContext(), SignoutActivity.class);
intent.putExtra("url", YOUR_EDIT_TEXT.getText().toString());
startActivity(intent);

receive data in MainActivity,

String s = getIntent().getStringExtra("url");

then load into webview

view.loadUrl(s);

solved webview load url from input text in another class [duplicate]