Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Private www As WebView
End Sub
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
Activity.LoadLayout("Layout1")
Dim html As String = File.ReadString(File.DirAssets,"body.txt")
html = strip(html)
File.WriteString(File.DirRootExternal,"bodynew2.txt",html)
www.LoadHtml(html)
End Sub
Sub strip(value As String) As String
value = value.Replace("=20"," ")
value = value.Replace("=21","!")
value = value.Replace("=22",$"""$)
value = value.Replace("=23","#")
value = value.Replace("=24","$")
value = value.Replace("=25","%")
value = value.Replace("=26","&")
value = value.Replace("=27","'")
value = value.Replace("=28","(")
value = value.Replace("=29",")")
value = value.Replace("=2A","*")
value = value.Replace("=2B","+")
value = value.Replace("=2C",",")
value = value.Replace("=2D","-")
value = value.Replace("=2E",".")
value = value.Replace("=2F","/")
value = value.Replace("=30","0")
value = value.Replace("=31","1")
value = value.Replace("=32","2")
value = value.Replace("=33","3")
value = value.Replace("=34","4")
value = value.Replace("=35","5")
value = value.Replace("=36","6")
value = value.Replace("=37","7")
value = value.Replace("=38","8")
value = value.Replace("=39","9")
value = value.Replace("=3A",":")
value = value.Replace("=3B",";")
value = value.Replace("=3C","<")
value = value.Replace("=3E",">")
value = value.Replace("=3F","?")
value = value.Replace("=40","@")
value = value.Replace("=3D","=")
Return value
End Sub