Hi all,
I have some html source, like “<html> <head>…</head><body>…</body></html>”
I want corona to show them as html page.
Is this possible?
If yes, could you please give me some help.
Thanks
Hi all,
I have some html source, like “<html> <head>…</head><body>…</body></html>”
I want corona to show them as html page.
Is this possible?
If yes, could you please give me some help.
Thanks
You should look at the native.newWebView() API call. Basically you can store an HTML file in your apps data spaces (shipped with the app in the read-only system.ResourcesDirectory or created or downloaded after the app is installed in system.DocumentsDirectory) and the native.newWebView() can read in the local file.
You can include CSS and Javascript too, but it has to be in the HTML file since the HTML doesn’t have access to your app’s sandbox to read in external files. Though you could pull external files from a web server as needed.
Thank you very much
You should look at the native.newWebView() API call. Basically you can store an HTML file in your apps data spaces (shipped with the app in the read-only system.ResourcesDirectory or created or downloaded after the app is installed in system.DocumentsDirectory) and the native.newWebView() can read in the local file.
You can include CSS and Javascript too, but it has to be in the HTML file since the HTML doesn’t have access to your app’s sandbox to read in external files. Though you could pull external files from a web server as needed.
Thank you very much