PictureListener is deprecated and obsolete, is there a replacement?

I would like to be notified when an image has been completely draw on the WebView. Using PictureListener and onNewPicture is a common answer (even suggested by the onPageFinished documentation) to this but is listed as deprecated and obsolete. Is there a replacement/alternative?

  • Google Maps V2 - Error inflating class Fragment
  • Android CollapsingToolbarLayout Title background
  • Android's BLE Service Discovery (BluetoothGatt#discoverServices()) and Low Energy vs BR/EDR
  • How to get name of wifi-network out of android using android API?
  • Android NumberPicker not saving EditText changes
  • Android - Coordinator Layout, Drawer Layout and Fragments
  • Related posts:

    Android how to create runtime thumbnail
    How to reference an external jar in an Android Library project in Eclipse
    Android Maps ClusteredMarkers - don't show unclustered?
    android.os.FileUriExposedException: file:///storage/emulated/0/test.txt exposed beyond app through I...
    android:textAllCaps=“false” not working for TabLayout design Support
    iOS' equivalent of Android's SharedPreferences
  • How to implement a MediaPlayer restart on errors in Android?
  • Loading shared libs that depend on other shared libs
  • How do I remove the divider from a listview on android?
  • How to Make my Android App FullScreen via Android Manifest?
  • Access ordered images and video in same Cursor
  • Drag and drop images in android
  • 2 Solutions collect form web for “PictureListener is deprecated and obsolete, is there a replacement?”

    I see with Android 4.0 the doc was updated:

    This method is deprecated. Due to internal changes, the picture does
    not include composited layers such as fixed position elements or
    scrollable divs. While the PictureListener API can still be used to
    detect changes in the WebView content, you are advised against its
    usage until a replacement is provided in a future Android release.

    There is no replacement yet.

    how about

    webview.setWebViewClient(new WebViewClient(){
        public void onPageFinished(WebView view, String url) {
            // you can get the picture here
            super.onPageFinished(view, url);
    Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.