Hello all
Using this sample I converted an HTML5 project designed by a Storyline into apk .
A problem appeared in the screen as it appears to be defective on most devices as follows:
this is my code:
Using this sample I converted an HTML5 project designed by a Storyline into apk .
A problem appeared in the screen as it appears to be defective on most devices as follows:
this is my code:
B4X:
If File.Exists(File.DirInternal & "/lsn", "") = False Then
' The HTML5 file is first a zip file in DirAssets
File.MakeDir(File.DirInternal,"lsn")
Dim myZip As ABZipUnzip
File.Delete(File.DirInternal,"1.zip")
File.Copy(File.DirAssets , "1.zip",File.DirInternal,"1.zip")
myZip.ABUnzip(File.DirInternal & "/1.zip" , File.DirInternal & "/lsn/")
File.Copy(File.DirAssets , "1.zip",File.DirInternal,"1.zip")
End If
wv.Initialize("wv")
wve.addWebChromeClient(wv,"wve")
wvs.setAllowFileAccess(wv,True)
wvs.setAppCacheEnabled(wv,True)
wvs.setDOMStorageEnabled(wv,True)
Activity.AddView(wv,0,0,100%x,100%y)
wv.LoadUrl("file:///" & File.DirInternal & "/lsn/story_html5.html")
wv.ZoomEnabled=True
ime1.Initialize("ime1")
ime1.AddHeightChangedEvent
Dim jo As JavaObject = Activity
jo.RunMethodJO("getContext", Null).RunMethodJO("getWindow", Null).RunMethod("setSoftInputMode", _
Array As Object(0x20))