Hi I am designing an Android Twitter App. I want to know how can I get the return info from the getSource() function to display just the source of the tweet and not the html. Is this something I would have to do on the Android side or is it already built into Twitter4j.

My function is returning and displaying for example,

< a href="http://blackberry.com/twitter" rel="nofloow">Twitter for Blackberry</a>

In the case of what you are showing us here you could simply do a couple of substrings to get to that:

< a href="http://blackberry.com/twitter" rel="nofloow">Twitter for Blackberry</a>

String s = "< a href=\"http://blackberry.com/twitter\" rel=\"nofloow\">Twitter for Blackberry</a>"; s = s.substring(s.indexOf(">")+1); //cuts off everything before Twitter s = s.substring(0, s.indexOf("<")); //everything from the first char to less than

Ignore the escaped quotes, I just had to do that to make it work from an assignment like this. You can use this on your string without doing anything to it like the escapes.