Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 2

ProgressDialogShow2("Please wait, loading webpage.

", False)
Activity.LoadLayout("About")
ProgressDialogHide

Sub YourWebViewName_PageFinished(Url As String)

ProgressDialogHide

End Sub

postwall("Jim has scored 100 points on Game X.")

Sub PostWall (MyMessage as string)

'Add Description
Dim nv As Map

nv.Initialize
nv.Put("message", MyMessage )

req = MultipartPost.CreatePostRequest(DataRequestLink & "?access_token=" &


AccessToken, nv, Null)
hc.Execute(req, 1)

End Sub

FacebookPage.LoadUrl("https://m.facebook.com/dialog/oauth?client_id=" & appID &


"&redirect_uri=" & RedirectUri & "&scope=" & scope & "&response_type=token")

Leer archivos de texto


-----------------------

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

Mostrar datos desde un WebView


------------------------------

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:

Activity.AddView(myw, 0, 0, -1, -1) or Activity.AddView(myw, 0, 0, 100%x, 100%y)

#site-title span {
font-size: 48px;
color: #001444;
text-shadow: 0 2px 0 rgba(255,255,255,0.5);
}

You might also like