I use an a-htmltag in my TextView, but when i tap on it nothing happens.
How can I make it open the web browser with the url?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Try this
Remember : don’t use android:autoLink=”web” attribute with it. because it causes LinkMovementMethod doesn’t work.
Update for SDK 24+
The function
Html.fromHtmldeprecated onAndroid N(SDK v24), so turn to use this method:Here are the list of flags:
Update 2
with
android.text.util.Linkify, it’s more easier now to make a clickable TextView: