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...