0

I´m looking for a easy tutorial to add a link to an activity. For example "password forgotten", after click on the link, the webbrowser should open the specified url. Thank you very much Regards, Marco

user1735856
  • 275
  • 7
  • 16

2 Answers2

1

This is one way:

http://android-developers.blogspot.com/2008/03/linkify-your-text.html

You could also use the HTML to Text functions:

How to display HTML in TextView?

Community
  • 1
  • 1
Booger
  • 18,259
  • 7
  • 52
  • 71
1

Change the URL to whatever you want.

Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setData(Uri.parse("http://www.mywebsite.com/"));
context.startActivity(intent);
eski
  • 7,849
  • 1
  • 22
  • 34