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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T15:42:05+00:00 2026-06-04T15:42:05+00:00

I am working on a simple Android game. On the main activity there’s a

  • 0

I am working on a simple Android game. On the main activity there’s a “Play” button. When the user clicks there the “Finding Other Players” activity is supposed to open, with a list of the other players he will be playing against.

That list of players is generated dynamically by connecting to a central server, so it takes 2-3 seconds.

What I want the app to do once the user clicks on “Play” is to open the background of the “Finding Players” activity, and then display the names of the other players as the server responds.

What’s happening, though, is that once you click on the “Play” button nothing happens for 2-3 seconds (while the app is getting data from the server), and then it opens the new activity window with all the data already there.

Is there a way to force the new activity background to open first, and then to work on collecting the data?

  • 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-04T15:42:06+00:00Added an answer on June 4, 2026 at 3:42 pm

    Launch the new Activity and make sure you do all the loading on a background thread. If the main thread is busy it will appear as if its frozen even though it hasn’t.

    Checkout AsyncTask for this, as that’s exactly what it’s for 🙂

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

Sidebar

Related Questions

I'm new to android game development. I currently working on a simple android app
So I am working on a simple android Tetris type game. On the first
I'm working on my first phonegap application, an android based simple form app. My
Currently i am working in Simple game application, i have a doubt on glVertexAttribPointer
I'm currently developing a simple 2D game for Android. I have a stationary object
I'm working on a simple android live wallpaper, I'm following chapter 12 from Hello,
While working on a simple program in Android, I mistakenly closed LogCat window and
I'm working on a simple text adventure for Android and have finished the navigational
I'm working on a relatively simple Android app. I want it to have an
I'm rather newbie on Android, and I'm working on a simple application to get

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.