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
Asked
Active
Viewed 286 times
2 Answers
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:
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
-
1Is that a link to your app? Anyway please take a few seconds to remove the unnecessary indentation. – Sam Mar 24 '13 at 17:07
-
Sorry, was just copypasta – eski Mar 24 '13 at 17:08
-
1@Sam You are too supportive... – Pragnani Mar 24 '13 at 17:12
-
@Pragnani Yes I am, but I like to give everyone a chance. eskimoapps.com, that's much better. – Sam Mar 24 '13 at 17:17