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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T19:25:08+00:00 2026-06-13T19:25:08+00:00

Ok once again, I am in way over my head here while learning android.

  • 0

Ok once again, I am in way over my head here while learning android. After finally developing my simple little app, I am trying to use some of the benefits of having a native app.

So, project one, make a page which can send images via email (either from the gallery or camera)

Essentially its a select and send via email, but I don’t even know where to start.

I found some code that somebody else was asking about at;
Android App Take/ Email Photo

I tried this, but get all sorts of errors from eclipse, replating to downloadedPic section.

If somebody could please take a look and advise me on the best way to do this, that would be amazing. As usual sorry for my beginers stupidity, but I guess everyone has to learn somewhere

THIS IS MY .JAVA AT PRESENT

public class Photos extends Activity {

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_photos);
    getActionBar().setDisplayHomeAsUpEnabled(true);
}

@Override
public boolean onCreateOptionsMenu(Menu menu) {
    getMenuInflater().inflate(R.menu.activity_photos, menu);
    return true;
}

THIS IS MY .XML AT PRESENT

<TextView
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="Please chose the options below to select and upload photos into the 
    DCC for the selected project..."
    tools:context=".Photos"
    android:textAppearance="?android:attr/textAppearanceMedium" />


</LinearLayout>
  • 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-13T19:25:10+00:00Added an answer on June 13, 2026 at 7:25 pm

    First what should you do is get the image storage path by using the file,

     File *photo = new File(Environment.getExternalStorageDirectory()+"/Android/data/"+getApplicationContext().getPackageName()+"/Fault", imagename+".png");
    

    Then Convert that file path in to Uri

    Uri imageuri = Uri.fromFile(photo); 
    

    Finally send it the image via email using your imageuri

    Intent send_report = new Intent(Intent.ACTION_SEND);
                                            send_report.putExtra(Intent.EXTRA_EMAIL, new String[]{ email_emailid}); 
                                            send_report.putExtra(Intent.EXTRA_SUBJECT, email_subject);
                                            send_report.putExtra(Intent.EXTRA_STREAM, imageuri);
                                            send_report.putExtra(Intent.EXTRA_TEXT, email_body);  
                                            send_report.setType("text/plain");
                                            send_report.setType("image/png");
                                            startActivityForResult(Intent.createChooser(send_report, "Choose an Email client"), 77);
    

    Hope it helps.

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

Sidebar

Related Questions

Once again I find myself failing at some really simple task in C++. Sometimes
I'm trying to test a very simple 2 way IM app. With the client
I'm once again looking into the world of tabbed browsing and Sessions. Looking over
I'm sorry to ask this again, I've looked over all the related questions here,
Once again, I'm at a loss with IE7 on this one. I'm making a
Once again I'm receiving structs via UDP from a C++ programm, Now I ported
Once again, lists are boggling my mind. <div id=headbottom> <ul id=headnavbutton> <li id=button1 class=headnavbutton></li>
Once again my silliness has struck. I would like to thank everyone who helped
Once again a question about the garbage collector in actionscript-3: If I have a
Once again I'm doing Java graphics (Graphics2D) but I noticed there is no Polygon.Double

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.