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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T08:20:56+00:00 2026-06-08T08:20:56+00:00

In my android application, I share the image via Bluetooth is working. At the

  • 0

In my android application, I share the image via Bluetooth is working. At the same time i tried to share via mail. But image isn’t attached that mail. It’s only send with body.
Any Solution ?

  • 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-08T08:20:57+00:00Added an answer on June 8, 2026 at 8:20 am

    To send image via email as an attachment, you first need to save it as a file on the SD card. If your image is a Bitmap then you can write it to a file like below

    OutputStream fOut = null;
    String fileName = Environment.getExternalStorageDirectory()+"/myImage.png";
    File file = new File(fileName);
    fOut = new FileOutputStream(file);
    bitmap.compress(Bitmap.CompressFormat.PNG, 85, fOut);
    fOut.flush();
    fOut.close();
    

    Then using the Intent, launch the email client application with the image file as an attachment

    Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND); 
    emailIntent.setType("image/jpeg");
    emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL, new String[] {""}); 
    emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, EMAIL_SUBJECT); 
    emailIntent.putExtra(android.content.Intent.EXTRA_TEXT, EMAIL_BODY);
    emailIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse("file://"+fileName));
    startActivity(Intent.createChooser(emailIntent, "Sharing Options"));
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to share image from specified path in android.my code is Working but
How to share data in Facebook through android application. is that any Intent call
How can I share my Android application to facebook with its Image. I have
I want to create one application which share image on twitter. But when i
I've got an android application using a shared object in the JNI (that I
I need to add a shake feature that will refresh my Android application. All
My Android application was working in English and I have to provide the users
Good evening. I'm developing an android application that uses Facebook SDK. I've no problem
My Android application is OpenSource, and I am a little bit afraid to share
Basicly, i want to provide users to share my application's android market url. I

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.