here is the code and screenshot can someone help me
private Object Uri;
@Override
public void onClick(View view) {
String str= editText.getText().toString();
Toast.makeText(getActivity(), str, Toast.LENGTH_SHORT).show();
Uri webpage = Uri.parse(str);
Intent intent = new Intent(Intent.ACTION_VIEW, webpage);
if (intent.resolveActivity(getActivity().getPackageManager()) != null) {
startActivity(intent);
}