title: How to determine LAST PictureListener.onNewPicture() call?
body: <p>On one hand, <code>WebViewClient.onPageFinished()</code> is a great way to tell when a web page finished loading (as in HttpGet) but it will not tell me when the web page has finished rendering.</p>
  
  <p>On the other hand, there is <code>PictureListener.onNewPicture()</code> which notifies me whenever the page has been (re)rendered.</p>
  
  <p>This is great for most cases, but for pages which are heavily Javascript-rendered (like YouTube, for example), I need to be able to know when the <strong>last</strong> such render (for that page) occurred.</p>
  
  <p>Something like <code>PictureListener.onNewPictureFinished()</code>.</p>
  
  <p>Such function doesn't exist, of course, in <a href="http://developer.android.com/reference/android/webkit/WebView.PictureListener.html" rel="nofollow">PictureListener</a>, so I am now wondering whether it is possible to come up with similar functionality or workaround?</p>
  
  <p>Any ideas how to determine <strong>last</strong> <code>PictureListener.onNewPicture()</code> call?</p>
  
  <p>(one idea that I have is to set a timer that will decide that "if within X seconds no onNewPicture() has been called, then the previous one must have been the last". This is an extremely inaccurate &amp; fuzzy approach, which is guaranteed to fail in many scenarios).</p>