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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T03:17:12+00:00 2026-05-20T03:17:12+00:00

I have an activity group which contains 2 activities. From first activity I goto

  • 0

I have an activity group which contains 2 activities. From first activity I goto the 2nd. I have a close button inside my 2nd activity. When I do a close over there, I should close that 2nd activity and the first activity should come with the data which it had earlier. That means I cant call intent to the 1st activity while doing close. Because then the data in 1st activity will change. How can I do this?

  • 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-20T03:17:13+00:00Added an answer on May 20, 2026 at 3:17 am

    I got it worked. Inside the activity group class,give the following code:

        RelativeLayout landingLayout = (RelativeLayout) findViewById(R.id.landingLayout);
        private static ArrayList<View> history;
        history = new ArrayList<View>();
    
        if (history.size() > 1) {
            history.remove(history.size() - 1);
            View view = history.get(history.size() - 1);
            replaceLandingView(view);
        } else {
            finish();
        }
    
        protected void replaceLandingView(View view) {
            landingLayout.removeAllViews();
            RelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams(
                    LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT);
            landingLayout.addView(view, params);
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have 2 activities, the first one is the startup one which in it's
In my application, i have activity group in which i have a custom ListView
I have an Activity which extends ExpandableListActivity and which contains some Parent Groups and
I have Activity with ListView inside it and in the onCreate method of the
I am having trouble with my activity management. So I have activity A which
I have an activity with a custom view which extends EditText in it. Usually
I have an Activity which loads a custom ImageView ( https://github.com/MikeOrtiz/TouchImageView/blob/master/src/com/example/touch/TouchImageView.java ). Inside onCreate,
I have an activity with style Dialog, containing two EditTexts. However, only the first
I have multiple tabs and within them I have got an activity group for
I have one problem using ActivityGroup . I have two activities inside an ActivityGroup

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.