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

  • SEARCH
  • Home
  • 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 7007219
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T21:34:44+00:00 2026-05-27T21:34:44+00:00

Intent intent = new Intent(Intent.ACTION_SEND); intent.setType("text/html"); intent.putExtra(Intent.EXTRA_EMAIL, "emailaddress@emailaddress.com"); intent.putExtra(Intent.EXTRA_SUBJECT, "Subject"); intent.putExtra(Intent.EXTRA_TEXT, "I’m email body.");

  • 0
Intent intent = new Intent(Intent.ACTION_SEND);
intent.setType("text/html");
intent.putExtra(Intent.EXTRA_EMAIL, "emailaddress@emailaddress.com");
intent.putExtra(Intent.EXTRA_SUBJECT, "Subject");
intent.putExtra(Intent.EXTRA_TEXT, "I'm email body.");
startActivity(Intent.createChooser(intent, "Send Email"));

The above code opens a dialog showing the following apps:- Bluetooth, Google Docs, Yahoo Mail, Gmail, Orkut, Skype, etc.

Actually, I want to filter these list options. I want to show only email-related apps e.g. Gmail, and Yahoo Mail. How to do it?

I’ve seen such an example on the ‘Android Market application.

  1. Open the Android Market app
  2. Open any application where the developer has specified his/her email address. (If you can’t find such an app just open my app:- market://details?id=com.becomputer06.vehicle.diary.free, OR search by ‘Vehicle Diary’)
  3. Scroll down to ‘DEVELOPER’
  4. Click on ‘Send Email’

The dialog shows only email Apps e.g. Gmail, Yahoo Mail, etc. It does not show Bluetooth, Orkut, etc. What code produces such dialog?

  • 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-05-27T21:34:45+00:00Added an answer on May 27, 2026 at 9:34 pm

    when you will change your intent.setType like below you will get

    intent.setType("text/plain");
    

    Use android.content.Intent.ACTION_SENDTO to get only the list of e-mail clients, with no facebook or other apps. Just the email clients.
    Ex:

    new Intent(Intent.ACTION_SENDTO);
    

    I wouldn’t suggest you get directly to the email app. Let the user choose his favorite email app. Don’t constrain him.

    If you use ACTION_SENDTO, putExtra does not work to add subject and text to the intent. Use Uri to add the subject and body text.

    EDIT:
    We can use message/rfc822 instead of "text/plain" as the MIME type. However, that is not indicating “only offer email clients” — it indicates “offer anything that supports message/rfc822 data”. That could readily include some application that are not email clients.

    message/rfc822 supports MIME Types of .mhtml, .mht, .mime

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

Sidebar

Related Questions

Intent intent = new Intent(); intent.setAction(Intent.ACTION_SEND); intent.setType(video/3gpp); intent.putExtra(Intent.EXTRA_STREAM, videoURI); startActivity(Intent.createChooser(intent,Upload video via:)); I used
So I would like to do something like: Intent intent = new Intent(Intent.ACTION_SEND); intent.putExtra(Intent.EXTRA_STREAM,
Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND); I am using an intent to open an Activity
I'm using intents to launch Google Navigation: Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse(google.navigation:q= +
I launch an activity to capture a picture from camera: Intent i = new
I'm creating a notification with something similar to the following: Intent ni = new
I've got a Share on Facebook button which launches an ACTION_SEND intent so the
How can I set a different content (different text, image/no image...) to an ACTION_SEND
i am trying to send an e-mail with multiple attachments. Intent emailIntent = new
I am new to Android and Java. I have constructed an app using HTML/Javascript

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.