Skip to content Skip to sidebar Skip to footer

How To Stop The Flood Of OnNewPicture()s?

In my tiny application, I get what I need from a web page after the first onNewPicture(). But WebView's PictureListener keeps bombarding my application with onNewPicture() callback

Solution 1:

Is there a way to tell WebView to stop listening/sending/processing onNewPicture()s?

Off the cuff, I would call setPictureListener(null) on the WebView, once you no longer need to be notified.

Note that PictureListener is marked as deprecated, though off the top of my head I have no idea what is replacing it.


Post a Comment for "How To Stop The Flood Of OnNewPicture()s?"