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
  • 285
  • 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,579
  • 7
  • 55
  • 72
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,917
  • 1
  • 23
  • 34