Is there a way to open the Twitter app from my own application?
For example, I have my own Android app and I want to open Twitter app using Intent. How can I do that? Answers with example would be much appreciated.
Is there a way to open the Twitter app from my own application?
For example, I have my own Android app and I want to open Twitter app using Intent. How can I do that? Answers with example would be much appreciated.
Expanding on @Chrishan's answer you can open the twitter app to perform different functions based on the uri (list below from this post)
e.g.
NOTE: I have only tried
user
andpost
, so if you come across any that don't work please let me know and I will update this answer.If the user already has Twitter installed on their phone, something like this should take care of it:
This should do the necessary work for you.
I use this:
And the function:
If Twitter app is intalled in the device, this open that, else open web browser...