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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T12:16:22+00:00 2026-06-13T12:16:22+00:00

In my MounthActivity, there are two activities. First is MonthChart and second is Test.

  • 0

In my MounthActivity, there are two activities.

First is MonthChart and second is Test.

My code is following :

package com.h.callsta;

    import android.app.ActivityGroup;
    import android.app.LocalActivityManager;
    import android.content.Intent;
    import android.os.Bundle;
    import android.view.View;
    import android.view.Window;
    import android.widget.LinearLayout;

public class MonthActivity extends ActivityGroup{

    private LinearLayout lo1, lo2;   

       LocalActivityManager lam = getLocalActivityManager();

public void onCreate(Bundle savedInstanceState) {   

    super.onCreate(savedInstanceState);   
    setContentView(R.layout.activity_month);
    lo1 = (LinearLayout) findViewById(R.id.lo1);  
    lo2 = (LinearLayout) findViewById(R.id.lo2);
    start_activity();

      }

public void start_activity(){

   Window win1 = lam.startActivity("0",new Intent(MonthActivity.this, MonthChart.class));
   View view1 = win1.getDecorView();
   lo1.addView(view1);  
   Window win2 = lam.startActivity("1",new Intent(MonthActivity.this, test.class));
   View view2 = win2.getDecorView();
   lo2.addView(view2);

     }


}

when run is only shows MonthChart,and the testdidn’t

But if I change the order of them, that Test activity will be first and MonthChart will be second, and they became visible properly, Why?

I guess it is because the MonthChart is too long ,is it?

How to solve it ?

  • 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-13T12:16:23+00:00Added an answer on June 13, 2026 at 12:16 pm

    I think you should use Fragment concept they are easily multiple acitvites you can use

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

Sidebar

Related Questions

I'm following the following tutorial for Facebook Connect: https://developers.facebook.com/docs/mobile/android/build/ And attempting to allow my
I have a question about the Android Facebook API singleSignOn() method. The code below
After finally getting the Android Facebook SDK to properly import thanks to this ,
I am trying to implement Tab View for my activity. I am getting an
Currently I'm writing an adapter class to provide a convenient way for communication with
I want to create something like this |Button| item 1 item 2 item 3

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.