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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T21:38:11+00:00 2026-05-20T21:38:11+00:00

I am having an issue with creating a pop-up window. I have a game

  • 0

I am having an issue with creating a pop-up window. I have a game i’m developing, and I’m trying to have a window or sub-menu pop up after I’ve won the game so the user has an option of quitting or restarting. Everything I’ve seen on popup windows is done in the activity. I want to do this from my “controller” class, basically I want to check to see if the user has won within my logic class and if they did bring up a window, I have a feeling, I’m going to have to do this in my activity. Any help would be appreciated it. If you need any further details just let me know.

  • 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-20T21:38:12+00:00Added an answer on May 20, 2026 at 9:38 pm

    You will have to do it in the Activity. You have two options:

    1) When you know the game is over, have a method in your “controller” class that returns whether or not the popup should be displayed. Something like isGameWon(). Call this from your Activity and respond accordingly.

    2) Keep a reference to your Activity in your controller class, or allow access to your Activity as a singleton object. When the game ends, check if the player won in your controller class, and if so, call a function in your Activity to display the popup, like showGameWonPopup().

    You can’t display a popup outside of the UI Activity. Your two classes need to communicate about the end result of the game and respond accordingly.

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

Sidebar

Related Questions

I'm having an issue creating a link like <a href=javascript:window.open('www.microsoft.com');>Visit Microsoft</a> using stringbuilder. I
i'm having an issue with creating a query in oracle which doesnt seem to
I'm having an issue with a standard ASP.NET page that has a TextBox and
I'm having an issue with CruiseControl.net where the web dashboard just won't work in
One of my colleagues is having an issue creating a (non-durable) subscriber to an
I am having an issue in creating rich:combobox i did as follows <rich:comboBox selectFirstOnUpdate=false
I am having an issue with creating and adding sales/quote_address objects to the multishipping
I am creating a web application and am having an issue with my cacheing.
I'm having issues creating an ActionLink using Preview 5. All the docs I can
I'm having some issues with producing an int matrix without creating memory leaks. I

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.