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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T08:32:59+00:00 2026-06-09T08:32:59+00:00

I want to display my image in ImageView in another activity after I captured

  • 0

I want to display my image in ImageView in another activity after I captured the photo.
I have 2 activities(MainActivity,UploadActivity) and 2 layouts(main,upload).

main layout has 1button for open camera and upload layout has Imageview for display image after capture.
MainActivity for button click to open camera and UploadActivity for retrieve image to display.

this is the MainActivity

 imb_eat.setOnClickListener(new OnClickListener() {

        public void onClick(View v) {
            Intent intent_capture = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
            startActivityForResult(intent_capture, 0);
        }
    });

}
  • 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-09T08:33:00+00:00Added an answer on June 9, 2026 at 8:33 am

    when the camera activity finishes, you collect the data in the onActivityResult() method.
    Then you can take the file your camera created and use it in another intent and then fire off fire off another activity. That activity then reads the intent data and can manipulate the photo.

    protected void onActivityResult(int requestCode, int resultCode, Intent data) {
        String filePath;
        Bitmap _bitmapPreScale = null;
      if (requestCode == REQUEST_FROM_CAMERA && resultCode == RESULT_OK) {
    
        _bitmapPreScale = getPhoto(filePath);
    
      Intent intent = new Intent(someCLass.class)
      intent.putExtra(Intent.EXTRA_STREAM, Uri.parse ("file://" + filePath));
      startActivity(intent);
     }
    

    }

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

Sidebar

Related Questions

i want to display an image in an ImageView on an already existing image
I have a pop up window which I want to display an image and
I have a 16x16 pixel image that I want to display in an UIImageView.
I have an image I want to display inside a UIView . In Interface
i want to display an image besides the text in table cell. i have
I want to display Image,Title name,and two left right buttons. That I have done
I have an image URL. I want to display an image from this URL
I want to display image using base64 encoding in IE using GWT If it
I want to display .jpg image in an Qt UI. I checked it online
I want to display an image using this php script on my server. $file

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.