Open Mail client and Web browser

All your problems with Audio, Video and Images.

Open Mail client and Web browser

Postby and.modi » Fri Dec 12, 2008 8:15 pm

I have one activity in my project which shows my email address and my wewb page..
I want to konw that how can make that text clickable so whenver user clicks on my email id it will open the default email client and clicks on wewb link it opens the web browser.
How can I do this?
I am using string from strings.xml file. So should I have to change that for that?
Mitul Modi
Junior Developer
Junior Developer
Posts: 14
Joined: Sat Jul 26, 2008 9:17 am


Postby haden » Thu Dec 18, 2008 3:23 pm

You can try this.

//for emails
android.text.util.Linkify.addLinks(theTextView, EMAIL_ADDRESSES);

//for urls
Experienced Developer
Experienced Developer
Posts: 74
Joined: Thu Sep 11, 2008 11:51 am


Return to Multimedia Problems

Who is online

Users browsing this forum: No registered users and 6 guests