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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T18:17:30+00:00 2026-05-27T18:17:30+00:00

I have following problem: I have a TabActivity which works well. Inside, there is

  • 0

I have following problem:
I have a TabActivity which works well. Inside, there is one Activity ( a ListView ) where the user is able to press on an ListItem to see details. So I’m switching the Views inside my Tab like this:

    public void replaceContentView(String id, Intent newIntent){
    ActivityGroup ag = null;

    try {
        ag = (ActivityGroup)getParent();
    } catch (Exception e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    }
    if (ag != null){
        newIntent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);

        View view = ag.getLocalActivityManager()
                .startActivity(id, newIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP))
                .getDecorView();

        setContentView(view);
    } else {
        startActivity(newIntent);
    }

}

new Activity just “appears” unlikely – very ugly -. How can I animate that currentActivity is fadingOut, while new Activity fades in? I already tried this, but now currentActivity is just fading-out, while listener is never called.

  • 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-27T18:17:30+00:00Added an answer on May 27, 2026 at 6:17 pm

    I have done it now through Androids Fragment API which I think it is a good advise to anyone who is playing with LocalActivityManager and DecorView yet

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

Sidebar

Related Questions

I have the following problem. If I query values with a keyfigure which is
My problem is, that I have got a TabActivity, which has 4 Tabs right
I have the following problem: there is a class with a couple of string
I have following problem that in a transformation (which is completely done in memory)
i have following problem: I have a class Foo which encapsulates a web-api. the
I have following problem module core contains test utils which is resused in dependent
I'm new to android and I have following problem I have a ListView. The
I have the following problem spanning dynamically added rows to a TableLayout inside a
I have following problem Bundle bundle = new Bundle(); bundle.putString(url, someUrl); This works fine.
I have following problem: I have built a tabbar application with 4 tabs. I

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.