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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T14:51:17+00:00 2026-05-31T14:51:17+00:00

I have 3 Activities – A , B , and C . In a

  • 0

I have 3 Activities – A, B, and C.

In a nutshell, Activity A starts Activity B, then A also starts Activity C and expects a result from C, but never gets it.

Here is the application workflow:

  1. Activity A is launched on app startup and starts Activity B (not for result, just startActivity()) in onCreate.

    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        startActivity(new Intent(getApplicationContext(), ActivityB.class));
    }
    
  2. Activity A then also starts Activity C later in code, this time for result using startActivityForResult(), and Activity A also has onActivityResult.

    Intent intent = new Intent(getApplicationContext(), ActivityC.class);
    startActivityForResult(intent, 0);
    

    and

    protected void onActivityResult(int requestCode, int resultCode, Intent data) {
       ...
    }
    
  3. Activity C uses setResult() and finish() to return some data, which should go back to Activity A, because Activity A called startActivityForResult().

    Intent intent = new Intent();
    intent.putExtra("encryption", encryption);
    setResult(56, intent);
    finish();
    

BUT the workflow falls silent at step 3 – Activity A’s onActivityResult is never called (neither is B’s for that matter), even though Activity A is the one starting C for result. Not sure if Activity B is getting in the way of A and C’s communication or what the problem could be. Any help is much appreciated.

  • 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-05-31T14:51:18+00:00Added an answer on May 31, 2026 at 2:51 pm

    I was never able to get this to work, so I ended up using a Handler instead to return the data to the necessary Activity.

    UPDATE: After running into this again, I found out that the real reason this wasn’t working is because I had android:noHistory="true" for the calling/receiving Activity A in the manifest. Removing android:noHistory="true" fixed it, but if you need it to be true, then Handlers are a good workaround.

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

Sidebar

Related Questions

I have two activities. In first I come to the second activity from first
I have two activities A and B, and from activity A, I click on
I have two activities A and B. Activity A starts activity B. Now I'm
I have three activities: Activity A - Displays a list of data from a
I have 2 activities A and B. I call activity B from activity A
I have 3 activities running ,navigating a1 to a2 then a2 to a3.Now pressing
I have 2 activities. The first activity is an activity that parses JSON data
This is my situation. I have two activities: ONE and TWO. In TWO activity
In our app, we have Activities A,B,C,D, and E. The user usually goes from
I have three activities 1 is the main activity 2 is some other activity

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.