'Activity module
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
End Sub
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
End Sub
Sub Activity_Create(FirstTime As Boolean)
Dim JSContent As WebViewExtras
Dim MsgContent As WebView
Dim HTMLContent As StringBuilder
Dim HTMLContent2String As String
MsgContent.Initialize("")
HTMLContent.Initialize
MsgContent.JavaScriptEnabled = True
JSContent.addWebChromeClient(MsgContent, "")
JSContent.addJavascriptInterface(MsgContent, "B4A")
HTMLContent.Append("<script language='JavaScript'>")
HTMLContent.Append("function sendProfilId(userid){")
HTMLContent.Append("alert(userid);")
HTMLContent.Append("B4A.CallSub('GetProfil', true, userid);")
HTMLContent.Append("}</script>")
HTMLContent.Append("<img onclick='javascript:sendProfilId(154);' src='http://www.fruityclub.net/site/images/smoove/logo.png' width='100px' />")
HTMLContent2String = HTMLContent.ToString
MsgContent.LoadHtml(HTMLContent2String)
Activity.AddView(MsgContent, 0, 0, 100%x, 100%y)
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub GetProfil(UserId As Int)
Msgbox("ProfilID = " & UserId, "TEST")
End Sub