Android Code Snippet Open Specific twitter page

Discussion in 'Code Snippets' started by shashkiranr, Jun 7, 2015.

  1. shashkiranr

    shashkiranr Active Member Licensed User

    Hi All,

    To open a specific twitter page from your application.

    1. go to http://www.idfromuser.com/ and enter the twitter page name or user name.

    2. Use the below code to open the specific page using twitter application

    Code:
    Try
                    
    Dim In As Intent
                    
    In.Initialize(In.ACTION_VIEW, "twitter://user?user_id=UserID")
                    
    StartActivity(In)
                
    Catch 
                    
    Dim p As PhoneIntents
                    
    StartActivity(p.OpenBrowser("https://twitter.com/User/pagename"))
                
    End Try
    Regards,
    SK
     
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