For open url from java code, copy paste the following code on your action Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("https://snipnyet.com")); startActivity(intent);