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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T18:38:34+00:00 2026-05-15T18:38:34+00:00

I have an android application that parses some HTML, downloads an image, and displays

  • 0

I have an android application that parses some HTML, downloads an image, and displays it. I’m using an AsyncTask to do the HTML parsing and image downloading, but that shouldn’t be relevant. I never have a problem when I’m on WiFi on my phone, when I’m using the Eclipse debugger on my phone, or when I’m using the emulator. When I have my phone on the cell network (even with pretty good reception), the image sometimes fails to display.

I’m having a hard time figuring out what is wrong, since the problem cannot be reproduced in the debugger. Does anyone have any idea what could be wrong?

Thanks!

Update: I have narrowed it down to the image downloading function. This way my original code:

private Bitmap downloadImage(String url) {
        Bitmap image = null;
        debug = "";
        try {
            URL image_url = new URL(url);
            HttpURLConnection image_connection = (HttpURLConnection) image_url
                    .openConnection();
            image_connection.connect();
            InputStream image_stream = image_connection.getInputStream();
            debug = image_stream.available()+"";
            image = BitmapFactory.decodeStream(image_stream);
        } catch (Exception e) {
            Log.e("downloadImage", "Exception: "+e.getMessage());
        }

        return image;
}

I have also tried using the code from this tutorial, but the same bug showed up.

http://www.devx.com/wireless/Article/39810/1954

At this point I think it must have to do with Verizon, but I’m not sure how to figure out what’s going on. I wish there was something like Wireshark for Android. I’ve given my code to a friend of mine on T-Mobile with the G1 and a friend on Sprint with the EVO. I have the Droid Eris on Verizon.

  • 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-15T18:38:35+00:00Added an answer on May 15, 2026 at 6:38 pm

    What carrier is that? I remember that T-Mobile always routed http traffic through their own proxy which is a bit slow to refresh, and there were some issues, particularly when the data was under a certain size – 64KB, I believe.

    See this thread: http://groups.google.com/group/android-developers/browse_frm/thread/48e84811764da1cb/7f052a903314b2b4?hl=en

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

Sidebar

Related Questions

No related questions found

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.