How to Have Clickable Items in a TextView, in XML
android:autoLink was added in API Level 1This will create clickable links for items (email address, street address, phone numbers, web urls), and opens the default application associated with each item.
1. Create an Android project, if you don't already have one.
2. Add a TextView.
3. In the main.xml file, add the below lines (the android:text change is for testing purposes only)
<TextView
....
android:text="This is an example. Url: androidsbs.blogspot.com Phone: 219-123-5555 Email: myemail@company.com Address: 1600 Amphitheatre Parkway Mountain View, CA 94043"
android:autoLink = "all"
/>
4. Compile and run!
5. Click on the TextView and the link should open your default internet browser.
Related Articles:
Resources:
http://developer.android.com/reference/android/widget/TextView.html#attr_android:autoLink