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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T04:16:22+00:00 2026-06-07T04:16:22+00:00

Following problem: I am calling an activity B with extras. If B gets launched

  • 0

Following problem: I am calling an activity “B” with extras. If B gets launched and has extras a ACTION_IMAGE_CAPTURE intent is on its way. This works really nice.

However, I have done this in onCreate() and therefore, everytime i change the orientation of my device, (and launched the activity before with extras) the camera gets on.

I tried to do clear();as well as remove() but this doesn’t do the job for me.

Any suggestions? Thanks in advance

  • 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-07T04:16:24+00:00Added an answer on June 7, 2026 at 4:16 am

    You can use onSaveInstanceState to maybe save a boolean to decide whether or not to keep the camera open. This method provides a bundle where you could insert that data, which you can access again during onCreate or onRestoreInstanceState. This is the preferred method of keeping an app working as expected during orientation changes.

    For example, you might check if a photo was actually taken with the camera, then based on that information, insert a boolean value into the savedInstanceState Bundle through the onSaveInstanceState callback. When onCreate is called, check the provided Bundle for your boolean and choose whether or not to open the camera using that boolean.

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

Sidebar

Related Questions

I have a following problem. client.GetServiceMapCompleted += (s, e) => { this.MyServiceMap = e.Result;
This has been killing me for two days now. I have a main Activity
This has been killing me for two days now. I have a main Activity
I have the following problem: Using asp.net C# and calling several places in code
I've got the following problem. After starting, application works fine - even after changing
I've got the following problem: In my TreeView i added unselect functionality by calling
I have the following code which gets call in my main activity's onCreate method
I got this following method in an non Activity class, My code is below.
Following problem: I want to render a news stream of short messages based on
The following problem happens on both Safari and Chrome, so probably a WebKit issue.

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.