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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T11:47:08+00:00 2026-05-22T11:47:08+00:00

I have a TabActivity that shows other Activities as the content based on which

  • 0

I have a TabActivity that shows other Activities as the content based on which tab is selected. What I want to do is from the ‘parent’ Activity try to capture the back key press, but neither onKeyDown() nor onBackPressed() ever get called in the parent… it’s being handled by the ‘child’ Activities. Is there any way to have it pass up to the ‘parent’ Activity?

  • 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-22T11:47:10+00:00Added an answer on May 22, 2026 at 11:47 am

    Why not just using, from within the child Activity:

    @Override
    public void onBackPressed () {
        this.getParent().onBackPressed();
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a TabActivity that hosts other three activities. If the first tab is
i have a tabActivity that hold 3 tabs. from one tab i want to
I have a TabActivity with a tab, which shows a list. I'd like to
I have A TabActivity that hosts other activities, on the tabactivity I have a
I have a TabActivity that is the base Activity in my application. From the
My main activity is a TabActivity. I have some activities presented by the tab
I have a TabActivity-based project which I want to publish to Android 4.0+ devices
I have a tabActivity which has 3 tabs and 3 different activities in each
Hi i have Tab activity(Chapter,subject) and database. i need to show the chapter_table content
My problem is, that I have got a TabActivity, which has 4 Tabs right

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.