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'>
//java script
</script>
</body>
</html>
In above format, i need to update value
field at runtime. After updating I want to open this html file within my android application.
Update: I know we can crate HTML file like 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 wank to know is there any other way to create HTML file like creating XML file using XmlSerializer Thanks!