java - detect hashtag and handles in a text under Android -


i'm writing app twitter like. i'm display tweets detect url link. i'm using code below:

import android.text.html; tweet.settext(html.fromhtml(str_tweets)); 

using this, text displayed showing html tag , "allow" click on it.

i'm trying same detecting hashtag # , handles @

the goal display profile when click @ , associated post when click on #

i don't know best way make or smarter one.

any idea ? api twitter allowing ??

thanks


Comments

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -