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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T10:37:23+00:00 2026-06-01T10:37:23+00:00

I simply have 2 tabs and used Experience – Multiple Android Activities in a

  • 0

I simply have 2 tabs and used Experience – Multiple Android Activities in a TabActivity as reference.
My class Architecture is like this:
MainActivity extends TabActivity
1.TabGroup1Activity extends TabGroupActivity (TabGroupActivity-class implemented from above reference)
1.i. Tab1Activity extends MapActivity (which has multiple marker)
2.TabGroup2Activity extends TabGroupActivity
2.i. Tab2Activity

In second tab (Tab2Activity) i show the google map which has multiple markers. On Taping the marker i want to start new Activity under same tab without loosing tab which as at bottom.
Here is the ItemizedOverlayItem class:

MapItemizedOverlay.java

public class MapItemizedOverlay extends ItemizedOverlay<OverlayItem> {
private ArrayList<OverlayItem> mOverlays = new ArrayList<OverlayItem>();
private Context mContext;



public InformationItemizedOverlay(Drawable defaultMarker, Context context) {
    super(boundCenterBottom(defaultMarker));

    mContext = context;
}

public void addOverlay(OverlayItem overlay) {
    mOverlays.add(overlay);
    populate();
}

@Override
protected OverlayItem createItem(int i) {
    return mOverlays.get(i);
}

@Override
public int size() {
    return mOverlays.size();
}

@Override
protected boolean onTap(int index) {

    OverlayItem item = mOverlays.get(index);

    //what code i have to write to start new activity without loosing tabs at bottom

}
}

I know i have to write the following code to start new activity under same tab but for above example i can not write getParent().

Intent in = new Intent(getParent(), TestActivity.class);
TabGroupActivity parentActivity = (TabGroupActivity) getParent();
parentActivity.startChildActivity("in", in);

How do i solve this problem ??

  • 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-01T10:37:25+00:00Added an answer on June 1, 2026 at 10:37 am

    simply pass the parent as agrgument from where you are calling “InformationItemizedOverlay”.

    Might be you are calling like below from some where in your code.

    InformationItemizedOverlay informationItemizedOverlay = new InformationItemizedOverlay(drawable,context);

    so change it as below

    InformationItemizedOverlay informationItemizedOverlay = new InformationItemizedOverlay(drawable,context,getParent());
    

    also change the constructor of “InformationItemizedOverlay” as appropriately…..

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

Sidebar

Related Questions

I simply have 2 tabs and used Experience - Multiple Android Activities in a
I have this simple js tabs. Here is the html : <div class=product-collateral> <div
I have a very simply query like this: SELECT users.id, COUNT(others.id) as c FROM
I have used 4 tabs.I want show tabbar in all activity so i used
In reference to this question: Which is prefered CTabCtrl vs CPropertySheet I have a
I simply want some tabbing functionality on a facebook application (business) tabs I have
I have this app which consists of three tabs. The first tab has a
I have an existing toolbar and would like to add tabs to it that
I have made a very simple AppleScript to close tabs in Safari. The problem
First of all, excuse my poor topic title. I simply have no idea how

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.