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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T17:58:14+00:00 2026-05-22T17:58:14+00:00

So I have a successful application with a form that registers a user with

  • 0

So I have a successful application with a form that registers a user with my website, and I created a 15 frame png animation that also runs well on command.

I have the animation starts up (and is looping) first and then run the HTTP POST at the end of the animation. When the HTTP Post is doing its thing, the animation (pretty much all of android) lags or pauses and then will continue to function after the POST is done.

Is this normal? Is there a way to make it not lag when running the POST?

Thanks!

And for those who are curious, here’s my httpClass (mywebsite.com is just a prop for my actual URL)

try{

                Log.d("MYTAG", "Registration begin"); 
                HttpClient client = new DefaultHttpClient();
                String postURL = "mywebsite.com";
                HttpPost post = new HttpPost(postURL);
                List<NameValuePair> params = new ArrayList<NameValuePair>();
                params.add(new BasicNameValuePair("username", username));
                params.add(new BasicNameValuePair("password", password));
                params.add(new BasicNameValuePair("email", email));
                params.add(new BasicNameValuePair("fullName", fullName));
                UrlEncodedFormEntity ent = new UrlEncodedFormEntity(params);
                post.setEntity(ent);
                HttpResponse responsePOST = client.execute(post);
                HttpEntity resEntity = responsePOST.getEntity();
                if(resEntity!=null){
                    newCode = EntityUtils.toString(resEntity);
                } else {
                    newCode = (String) null;
                }
             }catch(Exception e){
                Log.d("MYTAG", "Exception e="+e);
             }
             return newCode;
    }
  • 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-22T17:58:15+00:00Added an answer on May 22, 2026 at 5:58 pm

    You can fix that up with an AsyncTask. Google has an introduction to it here. It won’t make things go faster but it will keep your UI thread from stalling out.

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

Sidebar

Related Questions

I have a Java application that I need to integrate our existing PHP website
I have an a windows form application that use one class (its name is
I have recently created an Android application that allows users to add shopping items
I have a web application project (wap) that is successfully being deployed to a
In my application I'm using LDAP authentication. But i'm also have 2 remote services
My application has a restricted access. I have a user/password box in a small
I have a simple page in a PHP/MySQL web application that lets admin users
Lets suppose I have an .NET client application that connects to a WCF service,
I currently have an application that does the the following: S: Loads a view
I have a form1 that I run with Application.Run . I want to hide

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.