Hello,
I Created a project and added a webview and loaded index.html file, Index file is loaded without any issues but when I try to click on any link its just stuck at preloader image and does not load and other page though pages works fine on desktop. Can anyone help me on this? Do I have to do anything else to load other pages?
I am attaching Framework7 html files so you can take look.
Download: https://drive.google.com/file/d/0BxvoKXO_7hw_dlJlQWtlVVNoNEU/view?usp=sharing
Frmework7 Website: http://framework7.io
This is code I written for webview:
I Created a project and added a webview and loaded index.html file, Index file is loaded without any issues but when I try to click on any link its just stuck at preloader image and does not load and other page though pages works fine on desktop. Can anyone help me on this? Do I have to do anything else to load other pages?
I am attaching Framework7 html files so you can take look.
Download: https://drive.google.com/file/d/0BxvoKXO_7hw_dlJlQWtlVVNoNEU/view?usp=sharing
Frmework7 Website: http://framework7.io
This is code I written for webview:
B4X:
WebView1.Initialize("WebView1")
WebView1.JavaScriptEnabled=True
'WebViewExtras1.addJavascriptInterface(WebView1, "B4A") ' NOT ESSENTIAL
WebViewExtras1.addWebChromeClient(WebView1, "MyEventName")
WebViewSetting1.setDatabaseEnabled(WebView1, True)
WebViewSetting1.setDisplayZoomControls(WebView1, False)
WebViewSetting1.setLightTouchEnabled(WebView1,False)
WebViewSetting1.setDatabaseEnabled(WebView1, True)
WebViewSetting1.setDOMStorageEnabled(WebView1, True)
WebViewSetting1.setAllowFileAccess(WebView1,True)
WebViewSetting1.setJavaScriptCanOpenWindowsAutomatically(WebView1,True)
WebViewSetting1.setSupportZoom(WebView1,False)
Activity.AddView(WebView1, 0, 0, 100%x, 100%y)
WebView1.LoadUrl("file:///android_asset/index.html")