How to Improve Webview Performance Android Java

Android make webview faster and improve webview performance

This simple code can make the webview increase its performance and speed it up a bit

You should also note that this code works only on the android build versions greater than 18, so you should use this code only after detecting whether the android device is over 18 or not, if you do note do this, your app can crash.

 

Here is the java code to make webview faster

if (Build.VERSION.SDK_INT < 18) {
               //speed webview
               webview.getSettings().setRenderPriority(WebSettings.RenderPriority.HIGH);
           }

 

 

 

, ,

Post navigation

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.