GERSON PINTO Member Licensed User May 28, 2019 #1 Hello guys! I am using the webviewExtras2 library and b4A 9.02 B4X: WebView1.GetSettings.GetLoadsImagesAutomatically=False cause compile error (attached) I found in stackoverflow this code: B4X: webView.getSettings().setLoadsImagesAutomatically(false); What is wrong with my code? Any help? Attachments error.PNG 15.3 KB · Views: 274
Hello guys! I am using the webviewExtras2 library and b4A 9.02 B4X: WebView1.GetSettings.GetLoadsImagesAutomatically=False cause compile error (attached) I found in stackoverflow this code: B4X: webView.getSettings().setLoadsImagesAutomatically(false); What is wrong with my code? Any help?
R ronell Well-Known Member Licensed User Longtime User May 28, 2019 #2 EDIT: B4X: log(webviewextras1.GetSettings.GetLoadsImagesAutomatically) i guess you dont need to set a flag using this code, it just return the settings value ( true or false ) if you want to change the settings then you can use this B4X: webviewextras1.GetSettings.SetLoadsImagesAutomatically(False) Last edited: May 28, 2019 Upvote 0
EDIT: B4X: log(webviewextras1.GetSettings.GetLoadsImagesAutomatically) i guess you dont need to set a flag using this code, it just return the settings value ( true or false ) if you want to change the settings then you can use this B4X: webviewextras1.GetSettings.SetLoadsImagesAutomatically(False)
GERSON PINTO Member Licensed User May 28, 2019 #3 ronell said: EDIT: B4X: log(webviewextras1.GetSettings.GetLoadsImagesAutomatically) i guess you dont need to set a flag using this code, it just return the settings value ( true or false ) if you want to change the settings then you can use this B4X: webviewextras1.GetSettings.SetLoadsImagesAutomatically(False) Click to expand... works! Thank you Upvote 0
ronell said: EDIT: B4X: log(webviewextras1.GetSettings.GetLoadsImagesAutomatically) i guess you dont need to set a flag using this code, it just return the settings value ( true or false ) if you want to change the settings then you can use this B4X: webviewextras1.GetSettings.SetLoadsImagesAutomatically(False) Click to expand... works! Thank you