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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T15:24:31+00:00 2026-05-26T15:24:31+00:00

My activity A is a game and it does some background operations. When I

  • 0

My activity A is a game and it does some background operations. When I press a button in the contextual menu, I want to pop up a “small window/dialog/subactivity” (lets call it B) that appears on top of activity A and displays some data about those background operations. But I need to keep the focus on the activity A in order to continue interacting with it (playing the game).

In essence, I want to be able to see the data display by B while playing the game.

I’m not really sure how to implement this. After reading the documentation I have the next conclusions:

  • I know that I can’t use Dialogs because the have the focus. Is it possible to avoid this?
  • Using a subactivity with a Dialog theme it’s another option that looks tempting…but I believe that the subactivity has the focus. Ditto.
  • My last option is to try to add a LinearLayout with my data to the main Layout, “sharing/splitting” the screen. It’s not pretty, but at least I know that this is possible. What I don’t like about this approach is that I use the width and height of the screen.

Any suggestions? Solutions?

PS: I found some this thread here that are very related to my question:

  • Android ==> Sub 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-26T15:24:31+00:00Added an answer on May 26, 2026 at 3:24 pm

    Create an Activity with style Theme.Dialog. This is a normal activity which looks like a dialog, while being modeless and accepting events.

    Additional catch is in setting WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL and resetting WindowManager.LayoutParams.FLAG_DIM_BEHIND.

    See this answer for complete example: timed modeless dialog

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

Sidebar

Related Questions

So, why does this code: package org.popoffka.apicross; import android.app.Activity; import android.os.Bundle; import android.widget.Button; public
I have built an activity to handle gestures in my Android game and want
I have an activity for initialising a game, that does multiple selects and inserts
The main activity includes some variables with set values. I created a sub-activity with
onActivityResult is giving me major headaches. My little game has a title / menu
I'm trying out some game engines for android and came across cocos2d-android-1 . I've
I have 3 activities. start / game / finish, I want to go start
I am using Android Timer for a game. I want to implement a countdown
I'm trying to create an endgame activity for my Hangman game for android and
I'm attempting to make a simple game of Pairs for Android. Program Structure Menu.java

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.