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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T02:05:23+00:00 2026-05-30T02:05:23+00:00

I have a log-in screen that I’m using for my application. It calls JSON

  • 0

I have a log-in screen that I’m using for my application. It calls JSON to verify if the username/password is correct, if so, it signs them in and they are directed to the main menu. However, since it takes about 10-15 seconds to log in, I added a very simple “Progress Bar” widget to display that it is, in fact, signing in (so the user isn’t confused). However, whenever I test it on the emulator and log in, the log-in screen seems to freeze and then after the 10-15 seconds it logs in just fine, but the Progress Bar never displayed because the AVD screen is freezing up. I have it to set itself to visible when the JSON call is made. If I go back to the log-in screen after I am logged in successfully, the progress bar is there and showing up just fine.

Any tips on a way to remedy this? Thanks guys!

  • 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-30T02:05:25+00:00Added an answer on May 30, 2026 at 2:05 am

    I recommend you to use AsyncTask for performing long-time taking operations. And to notify user use ProgressBar or AlertDialog or any other notifier, which fits your needs.

    You should think about slow networks (2G, 3G) and possible data-rates limits, whatever, what can slow operation.

    Your code should be handling long-time taking operations in another than UI thread (which is basically what Activity is, the UI thread).

    To understand use and purpose of AsyncTask consider reading following links.

    http://developer.android.com/reference/android/os/AsyncTask.html
    http://developer.android.com/resources/articles/painless-threading.html
    http://developer.android.com/guide/practices/design/responsiveness.html

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

Sidebar

Related Questions

I have a Delphi (5) application that uses a log-in screen (standard user name/password)
I have a log file in SqlServer that stores the time an application started,
I have a application with a screen manager class that is causing me some
We have an ASP.NET application that uses Forms Auth. When users log in, a
I'm using a CardLayout to switch between full-screen panels that have several nodes. To
I have a little log in screen that pops up if a user selects
I have a simple gateway listener which generates a log at the screen output
We've faced strange problem. We have log on service, that authenticates user, adds auth
We have multiple log files like database log, weblog, quartzlog in our application. Any
I have a log that is really huge. (millions of rows) LogTable ------- ID

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.