Opening Web Page of given URL by ACTION_VIEW
This topic is a part of My Complete Andorid Course
//get the url form the user
String url = fetchURL.getText().toString();
//parse the url
Uri webpage = Uri.parse(url);
Intent intent = new Intent(Intent.ACTION_VIEW, webpage);
//there must another intent to handle else your app can be crashed
if (intent.resolveActivity(getPackageManager()) != null)
startActivity(intent);