Android Code Snippet Open Specific twitter page

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

B4X:
            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
 
Top