I've developed a few small Apps in B4A, but I'm conscious that I need to place them on iOS as well...
I'm working towards a game, with HTML5, Javascript and using Babylon.js
Has anyone converted a WebView from B4A? If so can they let me know if they have been able to successfully convert the following code or point me in the right direction of getting the relevant libraries in place or a possible starting place please?
I've seen this thread,
https://www.b4x.com/android/forum/threads/webview-extra.48304/
which seems to suggest that the libraries I'm interested in aren't yet available but I'm just wondering if anyone had worked through the problems already?
My code is :
Which uses WebViewExtras and WebViewSettings... I'm up for converting the libraries if needed, but it would be my first time wrapping a library! I guess its something I need to do!!
My whole reason for developing in HTML5 and Babylon.js was to enable the code to work on multiple platforms as easily as possible...! Now I'm not so sure....
MTIA
I'm working towards a game, with HTML5, Javascript and using Babylon.js
Has anyone converted a WebView from B4A? If so can they let me know if they have been able to successfully convert the following code or point me in the right direction of getting the relevant libraries in place or a possible starting place please?
I've seen this thread,
https://www.b4x.com/android/forum/threads/webview-extra.48304/
which seems to suggest that the libraries I'm interested in aren't yet available but I'm just wondering if anyone had worked through the problems already?
My code is :
B4X:
'Do not forget to load the layout file created with the visual designer. For example:
'Activity.LoadLayout("Layout1")
wv.Initialize("wv")
wve.addWebChromeClient(wv,"wve")
wvs.setAllowFileAccess(wv,True)
wvs.setAppCacheEnabled(wv,True)
wvs.setDOMStorageEnabled(wv,True)
wvs.setDisplayZoomControls(wv,False)
Activity.AddView(wv,0,0,100%x,100%y)
wv.LoadUrl("file:///android_asset/index.html")
ime1.Initialize("ime1")
ime1.AddHeightChangedEvent
Dim jo As JavaObject = Activity
jo.RunMethodJO("getContext", Null).RunMethodJO("getWindow", Null).RunMethod("setSoftInputMode", _
Array As Object(0x20))
ActivityParent = jo.RunMethodJO("getParent", Null)
Which uses WebViewExtras and WebViewSettings... I'm up for converting the libraries if needed, but it would be my first time wrapping a library! I guess its something I need to do!!
My whole reason for developing in HTML5 and Babylon.js was to enable the code to work on multiple platforms as easily as possible...! Now I'm not so sure....
MTIA