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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T04:31:48+00:00 2026-06-15T04:31:48+00:00

I have developed an Android App that communicates via HTTP-Request with a server. Some

  • 0

I have developed an Android App that communicates via HTTP-Request with a server.
Some times it takes more time for a request so the app shows just a black screen and passes some seconds later. Sometimes the black screen appears some seconds later and you can send the request again and again.

Is there any possibility to disable the onTouch-Events or show a layer while the screen is loading?

Thank you.

  • 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-15T04:31:49+00:00Added an answer on June 15, 2026 at 4:31 am

    use an asyncTask and launch your httprequest in the doInBackground() method, and for blocking the user , just display a ProgressDialog :

    class YourRequestTask extends AsyncTask<Void, Void, JSONObject> {
    
            ProgressDialog progress;
            Context context;
    
            public YourRequestTask(Context context) {
                 this.context = context;
            }
    
            @Override
            protected void onPreExecute() {
                progress = ProgressDialog.show(context, null,"Please wait...");
            }
    
            @Override
            protected JSONObject doInBackground(Void... params) {
                //do your work here for your http request
            }
    
            @Override
            protected void onPostExecute(JSONObject result) {
                progress.dismiss();
                            Log.i(TAG, "result is "+result.toString());
            }
    
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

http://developer.android.com/tools/publishing/app-signing.html I have a keystore that I already have an alias and password for.
we have developed and Android app, first time, great fun. Now we are giving
I have developed an App that target version is 4 (Android 1.6) upto 7
I have developed a business app that runs fine on android phone. What do
I have developed an android app that works great and i would like to
Right now, I have developed an android app that is available free on the
I have developed an android app that mainly targets smartphones. However in tablet emulator
I have developed an Android App that contains a list of information. I want
I have developed an android app that automatically sends an SMS automatically to a
I have developed an Android app that I am transferring to another person to

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.