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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T05:48:30+00:00 2026-06-14T05:48:30+00:00

i have issue with Droid X phone for sending attached email from my Application.My

  • 0

i have issue with Droid X phone for sending attached email from my Application.My Code working good for All other Android devices Like HTC,Samsung galaxy,Milestone. But i have problem with Droid X only.I saved my html file in the sdcard but i can not attached it in the email. i recived the empty mail, i didnt get the attachement in the droid x mobile.
here i attached my code…

save file in the sdcard:

protected void savehtml(HtmlViwer htmlViwer, String htmlcontent2,String string) {
    try {
       File root = new File(Environment.getExternalStorageDirectory(),"PalmAgent");
        if (!root.exists()) {
            root.mkdirs();
        }
        String sdcardhtmlpath = root.getPath().toString() + "/print.html";
        FileWriter fstream = new FileWriter(sdcardhtmlpath);
        BufferedWriter out = new BufferedWriter(fstream);

        out.write(htmlcontent2);
        out.close();
      } catch (Exception e) {// Catch exception if any

        System.err.println("Error: " + e.getMessage());
    }
}

sending mail with attachment:

  Intent sentinIntent = new Intent(Intent.ACTION_SEND_MULTIPLE);
    sentinIntent.setType("plain/text");
    ArrayList<Uri> uris = new ArrayList<Uri>();

    File root = new ile(Environment.getExternalStorageDirectory(), "PalmAgent");
    String sdcardhtmlpath = root.getPath().toString()+ "/print.html";
    String[] filePaths = new String[] { sdcardhtmlpath };

      for (String file : filePaths) {
          File fileIn = new File(file);
          Uri u = Uri.fromFile(fileIn);
          uris.add(u);
    }
      sentinIntent.putParcelableArrayListExtra(Intent.EXTRA_STREAM, uris);
      startActivity(Intent.createChooser(sentinIntent,"Send mail via"));
 }
  • 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-14T05:48:31+00:00Added an answer on June 14, 2026 at 5:48 am

    Finally I found the solution… while connecting to the PC the sdcard share its memory with PC so that I cannot access the sdcard that time. And also same device comes without memory card

    Intent sentinIntent = new Intent(Intent.ACTION_SEND);
    sentinIntent.setType("plain/text");
    
    
    File root = new ile(Environment.getExternalStorageDirectory(), "Path");
    String sdcardhtmlpath = root.getPath().toString()+ "/print.html";
    String[] filePaths = new String[] { sdcardhtmlpath };
    
      uris = getURI(filePaths );
      sentinIntent.putParcelableArrayListExtra(Intent.EXTRA_STREAM, uris);
      startActivity(Intent.createChooser(sentinIntent,"Send mail via"));
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working with a Droid / Android 2.0.1 and encountering an issue apparently many
I have an issue of alphabetically sorting the contacts picked from the address book
I have an issue while getting the file name with out extension from a
I have an issue. I am getting data from a MySQL database, and make
Are there known issues with navigator.onLine on Android 2.1? I have a Droid on
Phone Information: Droid Bionic Android 2.3.4 USB Debugging Enabled I am looking into writing
In my application I have many classes and activities. Droid is a class which
i have issue regarding Paging using filterexpression. here's the piece of code for filtering
I have issue to set all controls values by button click to default. Problem
I have issue with sending AJAX body request using jQuery CORS with custom Content-type.

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.