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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T08:42:39+00:00 2026-05-27T08:42:39+00:00

In one of my classes, I call WebView.postUrl() : getWebView().postUrl(url, EncodingUtils.getBytes(postData, BASE64)); Which works

  • 0

In one of my classes, I call WebView.postUrl():

getWebView().postUrl(url, EncodingUtils.getBytes(postData, "BASE64"));

Which works perfectly on an LG Optimus S, but doesn’t work for some reason on an HTC Nexus One.

By “works” I mean that the target site responds to the postUrl() query with the expected results and is characterized by always:

  1. generating two WebViewClient.onPageStarted() calls,
  2. followed by a WebView.loadUrl() and
  3. followed by a WebViewClient.onPageFinished()

On the culprit Nexus One, however, only the first WebViewClient.onPageStarted() call is generated, never followed by any other call.

Obviously WebView and/or WebViewClient are behaving differently on the different devices, because both devices run the same exact application code.

(or is it the website that’s responding differently to the different devices, which use the same exact WiFi gateway?)

Both devices run the same exact application code, but the Android versions are slightly different: The LG runs 2.3.3 and the N1 runs 2.2.1.

Any idea or tips on how to approach the debugging of this tough problem?

For example, are there any hooks that I can place somewhere to trace what’s really going on under the cover?

  • 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-27T08:42:39+00:00Added an answer on May 27, 2026 at 8:42 am

    Override onReceivedSslError and onReceivedError of your WebViewClient. I’m guessing it is an issue with 2.2 not trusting certain CAs, or a bug that causes problems wildcard domains in SSL certificates – both of these specific errors will be caught in onReceivedSslError.

    If either of these methods gets called, the page might not get finished loading.

    If there aren’t any errors, your server might be doing something different because of the device’s User-Agent – which you might have to manually set.

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

Sidebar

Related Questions

I have two classes one of which inherits from the other. Im trying to
I have 2 dijit widget template classes and am trying to call one from
In one of my classes I have an internal constructor which is being used
I am trying to get call one of my classes attribute writers, but for
One of classes in my program uses some third-party library. Library object is a
I'm executing the java binary from one of my classes, and a ClassNotFoundException gets
I have a field for addedBy in one of my classes. I've set up
Trying to override a tostring in one of my classes. return string.Format(@ name =
I need to validate a certain property to one of my classes. When I
I am using System.Timers.Timer class in one of the classes in my application. I

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.