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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T18:36:58+00:00 2026-06-05T18:36:58+00:00

In testing an app, I keep getting errors that occur sporadically on only one

  • 0

In testing an app, I keep getting errors that occur sporadically on only one device: the GT-I9100 (European) Samsung Galaxy S II. These errors do not occur on any other device, not even the SPH-D710 (Sprint) Samsung Galaxy S II.

The URLs used by the app do not change. They are the same that I can type into a web browser, or that the iOS and desktop versions of the app use. But sometimes they throw an UnknownHostException, and sometimes they don’t.

Here is a heavily sanitized version of the code I am using:

AndroidHttpClient client = AndroidHttpClient.newInstance(activity.getString(R.string.user_agent));
HttpPost httpPost = new HttpPost("http://" + subdomainId + ".website.com/doSomething.aspx");

  try {
    // Add your data
    List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>();
    nameValuePairs.add(new BasicNameValuePair("parameter1", value1));
    nameValuePairs.add(new BasicNameValuePair("parameter2", value2));
    httpPost.setEntity(new UrlEncodedFormEntity(nameValuePairs));

    // Execute HTTP Post Request
    HttpContext httpContext = new BasicHttpContext();
    HttpResponse response = client.execute(httpPost, httpContext);

  ... ...

Is there any quirk of the Samsung Galaxy S II that could be causing this? It’s running Android 2.3.6.

  • 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-05T18:36:59+00:00Added an answer on June 5, 2026 at 6:36 pm

    As others said it could be caused by a non-existent internet connection.

    Maybe try adding a request retry handler like so..

        HttpRequestRetryHandler retryhandler = new DefaultHttpRequestRetryHandler(6, true);
    
        httpClient.setHttpRequestRetryHandler(retryhandler);
    

    That way if the internet goes off for a split second you the httpclient can handle it. Here apache also suggest retrying if you have any transport errors

    Generally transport exceptions are non-fatal and may be recovered from
    by retrying the failed method.

    So I would suggest it is good practice to use the retry handler anyway

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

Sidebar

Related Questions

I have a WPF app that I'm testing on a Samsung XE700T1A tablet. I
I keep getting this weird error message every time I'm testing my app on
I am testing my app and I keep getting these leaks but none of
I'm testing an app that reads thousands of small objects and sends then back
I have created one testing app for running deep counter loop. I run the
The app, that i am now developing, works on device properly, as i want,
I'm trying to build a small testing app with erlang+mnesia. I have a user
I am testing my app in two different devices. My app is relies heavily
I am just testing an app to get data off our web server, previously
I am testing my app on a rooted Nexus S phone. I finally have

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.