Android Question B4xPages with webview

Rusty

Well-Known Member
Licensed User
Longtime User
When making a B4a, B4i etc project using B4xPages, can one use the standard Webview or does one need to use a B4xView of some sort?
If the later, are there any examples?
Also, do either/both support WebviewExtras and WebviewSettings?
Thanks,
Rusty
 

JohnC

Expert
Licensed User
Longtime User
I think you can only use Webview because it has a whole html render engine in it, whereas Bx4View I don't believe does.
 
Upvote 0

Rusty

Well-Known Member
Licensed User
Longtime User
Thanks John,
Can a project with a webview be compiled/run on both Android and iPhone using the B4xPages?
 
Upvote 0

JohnC

Expert
Licensed User
Longtime User
That I don't know - I have not played with B4xPages yet.
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
(B4XPages not B4xPages.)

You are confusing different things.
You can use any view you like with B4XPages.

B4XView, which has nothing to do with B4XPages, doesn't expose methods for WebView. This means that you will not gain much by setting its type to B4XView. Better to keep it as WebView.

Some of the methods between B4A WebView and B4i WebView are the same and some are different. The solution is very simple, use conditional compilation when needed.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…