Professional Documents
Culture Documents
TIPS
TIPS
", False)
Activity.LoadLayout("About")
ProgressDialogHide
ProgressDialogHide
End Sub
'Add Description
Dim nv As Map
nv.Initialize
nv.Put("message", MyMessage )
End Sub
Sub ReadStringExample
Msgbox(File.ReadString(File.DirRootExternal, "String.txt"), "")
End Sub
Sub ReadTextReader
Dim TextReader1 As TextReader
TextReader1.Initialize(File.OpenInput(File.DirRootExternal, "Text.txt"))
Dim line As String
line = TextReader1.ReadLine
Do While line <> Null
Log(line) 'write the line to LogCat
line = TextReader1.ReadLine
Loop
TextReader1.Close
End Sub
If FirstTime Then
If File.Exist(File.DirInternal, "yourfile") = False Then
File.Copy(File.DirAssets, "yourfile", File.DirInternal, "yourfile")
End If
End If
Sub Globals
Dim myw As WebView
End Sub
Sub MyIntro
myw.Initialize("myw")
Activity.AddView(myw,0,0,600,980) '*** Set these for to what you need -
left, top, width, height
myw.JavaScriptEnabled = False
myw.ZoomEnabled = False
myw.Visible = True
myw.LoadUrl("file:///android_asset/intro.htm")
End Sub
Just create the file you want and save it as intro.htm in the Files directory under
your project. Just call the sub when you want it. Make sure you copy all images,
etc. to the Files directory also. When you wish to remove the window, enter:
myw.RemoveView. This same code will work for your help screens too.
You can add the WebView to your Activity with automatic full height and width by
using -1 for those properties:
#site-title span {
font-size: 48px;
color: #001444;
text-shadow: 0 2px 0 rgba(255,255,255,0.5);
}