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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T09:57:45+00:00 2026-05-30T09:57:45+00:00

I am facing very complicated issue with Activity Group. In my application I have

  • 0

I am facing very complicated issue with Activity Group. In my application I have used ActivityGroup. With other activity navigation I used:

Intent activityIntent = new Intent(v.getContext(), Reschedule.class);
    activityIntent.putExtra("dialog_selcted_Appointment_date_time", selected_date +" "+ selected_time);
    replaceContentView("activity3", activityIntent);

private void replaceContentView(String id, Intent newIntent) {
    View view = this.getLocalActivityManager().startActivity(id,newIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)) .getDecorView(); this.setContentView(view);}

My issue is, once I navigate on the other screen this this intent now if one more time I will make the same navigation without changing the activity then it gives an error of:

02-23 18:16:15.200: E/ACRA(2433): 
Caused by: android.view.WindowManager$BadTokenException: Unable to add window --
 token android.app.LocalActivityManager$LocalActivityRecord@44f04458 is not valid; is your activity running?
  • 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-30T09:57:46+00:00Added an answer on May 30, 2026 at 9:57 am

    Try

    View view = getApplicationContext().startActivity(id,newIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)) .getDecorView(); this.setContentView(view);}
    

    Also, ActivityGroup class is deprecated now. It is better and easier to use Fragments for this purpose. Refer http://developer.android.com/guide/topics/fundamentals/fragments.html.

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

Sidebar

Related Questions

I am facing a very strange issue. I have a SharePoint webpart that displays
I've websphere application server 7 network deployment, and am facing a very strange issue,
I'm facing a very buggy issue, in ASP.NET application after viewing the same report
I am facing very strange issue. When I was running my app in iPhone
I have an upload system ready, however I might be facing a very high
I'm facing very strange issue, I'm getting JSON object from django powered site and
I am facing a very strange problem. I have a grid and when i
I am facing a very strange issue ever since I updated the Xcode with
ohk i am facing this very weird problem . i have a cloud server
Im facing with a very strange issue and i dont know yet the source

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.