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!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…