+ 1

How to make a hyperlink in android???

I want to make a text as a hyperlink to open the address on browser

2nd Aug 2017, 1:16 PM
Majid Askari
Majid Askari - avatar
3 ответов
+ 16
Intents..... ~_~ (painful chapter....)
2nd Aug 2017, 1:28 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 9
Why painful @ valentin?
2nd Aug 2017, 1:32 PM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 2
first Create a TextView and Follow this codes in your Activity: 1. TextView tvName = (TextView) findViewById(R.id.TextViewID); 2. tvName.setClickable(true); 3.tvName.setMovementMethod( LinkMovementMethod.getInstance() ); 4. String myLink = " <a href='https://YourSite.com'> YourText </a> " ; 5. tvName.setText( Html.fromHtml( MyLink ) ); ..Good luck..
2nd Aug 2017, 9:05 PM
Mahdi sg
Mahdi sg - avatar