+ 1
How to make a hyperlink in android???
I want to make a text as a hyperlink to open the address on browser
3 Respostas
+ 16
Intents..... ~_~ (painful chapter....)
+ 9
Why painful @ valentin?
+ 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..