I want to open YouTube App showing an specific channel, but this only execute the browser.
try
{
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setData(Uri.parse("http://www.youtube.com/"+channel));
startActivity(intent);
}
catch (Exception e)
{
startActivity(new Intent(Intent.ACTION_VIEW,Uri.parse("http://www.youtube.com/"+channel)));
}
I want to show this:
Do research on library called YouTubeAndroidPlayerApi. This piece of code does exactly what you want.
Use this code it will open the channel
Or, you could avoid the implementation of YouTubeAndroidPlayerApi Library: (kotlin)
Simply you can't. The image you linked, is about the YouTube application, not the website.
EDIT: Take a look here: Launch an application from another application on Android