I need to create and open an HTML file at runtime.
<html> <body> <form name="Home" method="POST" action='' > <input id='Title' type='hidden' value="Mr" name='Title'/> <input id='Name' type='hidden' value="bala" name='Name'/> . . . </form> <script language='javascript'> </script> </body> </html>
In the above format, I need to update the value field at runtime. After the update, I want to open this html file in my Android application.
Update: I know that we can store the HTML file as shown below.
public static String createHTML(Study study) { String format = "<html>" + "<body>" + "<form name="Home" method="POST" action='' >" + "<input id='Title' type='hidden' value='%d' name='Title'/>" + . . . . " </body>" + "</html>"; return String.format(format, study.title, study.name...); }
but I want to know if there is another way to create an HTML file, for example, create an XML file using XmlSerializer Thanks!
java android html android-webview
bCliks
source share