tags:

views:

40

answers:

2

Hi,

I have a user's twitter handle. Right now I'm opening it through a web page like:

String url = "http://www.twitter.com/" + "example_handle";
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
startActivity(intent);

If the user has the Twitter android app installed, is there a different intent I can use which gives the user the option to view that user's twitter feed in the Twitter app, instead of forcing them directly to a browser? I'm not sure if the author's of the Twitter app have exposed any such intent,

Thanks

A: 

AFAIK, the Twitter app is undocumented from the standpoint of developer integration like this.

We were told that it would be released as open source. It is possible that, at that time, they will also document integration strategies for this.

CommonsWare
A: 

You could write a small Twitter reader and show it in your own app. All you need is their user timeline API call ( http://dev.twitter.com/doc/get/statuses/user_timeline ). This would be a good usability choice since users wouldn't have to leave your app. Only thing to remember: the amount of utility you gain by including this functionality is dependent on why you are sending the user to Twitter in the first place.

Hunter Bridges