Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8584173
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T21:42:37+00:00 2026-06-11T21:42:37+00:00

This is the html element in my Strings.xml file. <string name=five> <![CDATA[ <HTML> <Body>

  • 0

This is the html element in my Strings.xml file.

<string name="five">
          <![CDATA[
         <HTML>
         <Body>
         <p>.................Some Text.......................

         <br><br>Feel free to contact us at<br> <font color="#add8e6">myemailid@gmail.com</font></p>
         </body>
         </HTML>
          ]]>
        </string>

Now, when the user clicks on myemailid@gmail.com, I want the yahoo mail or gmail or which ever mail application is present in the user’s phone to open up and the myemailid@gmail.com to fill up the TO : field. Is anything like this possible?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T21:42:39+00:00Added an answer on June 11, 2026 at 9:42 pm

    When you are setting the text you can use (assuming you have retrieved the string into a variable called text and are referenciing a TextView called textView)

    textView.setText(Html.fromHtml(text));
    

    When setting your layout you can also declare android:autolink=”email” on the Views holding the five string.

    The description of autolink says “Controls whether links such as urls and email addresses are automatically found and converted to clickable links.” i.e. the text within the View is parsed and any (in this case) email addresses in the text are converted to clickable links.


    In the case of android:autolink="email" your other Html tags in the text wouldn’t be processed and would be display as they are above (rather than as a processed HTML document).

    Whereas Html.fromHtml() will handle the HTML tags and deal with correctly formated tags.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some html file with span elements: <html> <body> <span class=one>Text</span>some text</br> <span
I have a td-element which can contain some HTML code, e.g. &lt; . This
I am querying an HTML file with LINQ-to-XML. It looks something like this: <html>
I have an html string I'd like to dump directly into an element. This
I have a basic xml file that looks like this. <root> <item> <title><p>some title</p></title>
Okay so say I have a form element like this: HTML: <div class=form-item> <label>Current
I'm parsing JSON that is contained in an HTML element. Consider this markup: <div
I have this function that switches the HTML contents from one element on a
Okay, so I'm designing this site. Here's the HTML markup of this simple element:
I've got an XML file automatically generated, which I want to display in HTML.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.