Android Question Open specific Youtube page

Discussion in 'Android Questions' started by imgsimonebiliato, Mar 27, 2015.

  1. imgsimonebiliato

    imgsimonebiliato Well-Known Member Licensed User

    Hello,
    how can I start an intent to open the youtube application, linked to to a specific youtube channel?
     
  2. NJDude

    NJDude Expert Licensed User

    Try this:
    Code:
    Private i As Intent

    i.Initialize(i.ACTION_VIEW, 
    "https://www.youtube.com/user/Basic4android")
    i.SetComponent(
    "com.google.android.youtube/.UrlActivity")

    StartActivity(i)
    I'm assuming you have the latest YouTube app installed.
     
  3. imgsimonebiliato

    imgsimonebiliato Well-Known Member Licensed User

    Yes, perfect!
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice