I have an old Samsung Tablet E which I want to use with a Leaflet map. The Android version is 5. The webpage is functioning on the tablet splendidly in the Google Chrome app, but doesn't show up in the webbrowsercomponent in my codenameone app which works with the system webview I use this oode too load the webpage. In Android 7 is my codenameapp also working splendidly.
private BrowserComponent bc;
private Form hi;
private void test2() {
bc = new BrowserComponent();
bc.setProperty("JavaScriptEnabled", true);
bc.setProperty("AllowFileAccess", true);
bc.setProperty("FileAccessFromFileURLs", true);
bc.setURL("https://leafletjs.com/examples/accessibility/example.html") ;
hi.add(BorderLayout.CENTER, bc);
hi.show();
hi.revalidateWithAnimationSafety();
}
My questions
- Is the code correct? Does it work with Android 5?
- Or is there a work around to open webpage in Chrome app from a codename one app
Can somebody give me some code how I can open the Chrome app within codenameone and go to a specific external stored webpage?