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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T16:19:05+00:00 2026-05-17T16:19:05+00:00

I am quite new to Android yet, and I have an application that has

  • 0

I am quite new to Android yet, and I have an application that has a webview on it.

I need to know when the webview finishes loading a page that has a random number of redirects (sometimes to the same page, and the order of the redirects also change), so I can remove the Splash Screen only when there is a fully loaded page.

On the webviewclient the onPageStarted and onPageFinished functions are called once per each redirect, as is the onNewPicture (even though the screen is always blank during the redirects). So I can’t be sure when it’s called the last time (page actually loaded).

I also tried using the onLoadResource to count the number of resources loaded (dangerous and unreliable approach, but I am getting desperate here), but this also failed, since after the page is cached, it is called only one or two times.

That is one big puzzle I am unable to solve using what I know so far, can anyone please help me?

Thanks a lot in advance.

  • 1 1 Answer
  • 1 View
  • 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-17T16:19:05+00:00Added an answer on May 17, 2026 at 4:19 pm

    Off the cuff, it sounds like you have a Web site that needs to be rewritten… 🙂

    Here are two possibilities I can think of:

    1. If you get an onPageFinished() and no onPageStarted() after such-and-so period of time, assume the redirects are done.
    2. If these redirects are all HTTP redirects (3xx response status codes), you could use HttpClient to navigate the redirects until you get the final URL, then give that URL to WebView to display.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I understand that flash is quite new to android. Has anyone actually used flash
I'm quite new to Android development. My understanding is that you can create several
I am quite new to Java and am currently coding an Android application. In
I'm quite new to Android development and was about to finish my first application
I'm quite new to developing Android apps. Basically I'm making a webview template to
I'm quite new to android, but I have already created several apps and published,
I'm quite new to Android and I have been reading the Professional Android 2
I'm quite new to Android and have been using an AVD to debug my
I'm quite new to android development, and just know started to learn how to
I'm quite new to Android but already have some experience with Java itself. Now

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.