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 9012563
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T03:02:03+00:00 2026-06-16T03:02:03+00:00

Here user has to enter his/her Name, age and message. It has to open

  • 0

Enquiry

Here user has to enter his/her Name, age and message. It has to open Gmail app, showing entered name/age/message. Its showing only MESSAGE. Remaining details I’m not getting it.

String s1= name.getText().toString();
   String s2= age.getText().toString();
   String s3= msg.getText().toString();
   Intent email = new Intent(Intent.ACTION_SEND);
   email.putExtra(Intent.EXTRA_EMAIL,
   new String[] { "abc@gmail.com" });
   email.putExtra(Intent.EXTRA_SUBJECT,"hiiiii");
   email.putExtra("Name", s1);
   email.putExtra("Age", s2);
   email.putExtra(Intent.EXTRA_TEXT, s3);
   email.setType("message/rfc822");
   startActivity(Intent.createChooser(email,"Choose an Email client :"));
  • 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-16T03:02:04+00:00Added an answer on June 16, 2026 at 3:02 am

    Thats because the type EMAIL doesn’t have a concept for Name or Age. Emails contain only recepients, senders, Messages, and Subjects. You’ll have to concatenate your name and age data and put it in either the subject or message. Something like this would work:

    String s1= name.getText().toString();
    String s2= age.getText().toString();
    String s3= msg.getText().toString();
    Intent email = new Intent(Intent.ACTION_SEND);
    email.putExtra(Intent.EXTRA_EMAIL,
    new String[] { "abc@gmail.com" });
    email.putExtra(Intent.EXTRA_SUBJECT,"hiiiii");
    email.putExtra("Name", s1);
    email.putExtra("Age", s2);
    nameAgeStr = "Name: " + s1 + " Age: " + s2 + ".\n";
    email.putExtra(Intent.EXTRA_TEXT,nameAgeStr + s3);
    email.setType("message/rfc822");
    startActivity(Intent.createChooser(email,"Choose an Email client :"));
    

    This will put the name and age on their own line line the body(message) of the email.

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

Sidebar

Related Questions

I'm writing an app that lets a diabetic user enter his/her blood glucose readings,
EDIT It appears the user has to enter some data for his profile, otherwise
In my app, a user has to enter at least one character in the
here is my 3 tables: table 1 -- stores user information and it has
Here I am explaining the scenario - The user, after providing a service has
I have a form where the user has to enter a list of choices
I have two tables of concern here: users and race_weeks. User has many race_weeks,
here i tried to take name and password from database if the user have
I am trying to find out if a phrase entered by the user has
We have an application where user sets his/her preferred date/time format. User is expected

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.