Sub Process_Globals
Dim Thread1 As Thread
End Sub
Sub Activity_Create(FirstTime As Boolean)
Thread1.Initialise("Thread1")
End Sub
Sub ativabotoes
If kv.ContainsKey("Dica1-"&teste) = True Then
Button1.Enabled = True
End If
If kv.ContainsKey("Dica2-"&teste) = True Then
Button2.Enabled = True
End If
If kv.ContainsKey("Dica3-"&teste) = True Then
Button3.Enabled = True
End If
If kv.ContainsKey("Dica4-"&teste) = True Then
Button4.Enabled = True
End If
If kv.ContainsKey("Dica5-"&teste) = True Then
Button5.Enabled = True
End If
If kv.ContainsKey("Dica6-"&teste) = True Then
Button6.Enabled = True
End If
If kv.ContainsKey("Dica7-"&teste) = True Then
Button7.Enabled = True
End If
If kv.ContainsKey("Dica8-"&teste) = True Then
Button8.Enabled = True
End If
If kv.ContainsKey("Dica9-"&teste) = True Then
Button9.Enabled = True
End If
If kv.ContainsKey("Dica10-"&teste) = True Then
Button10.Enabled = True
End If
End Sub
Sub ProcessHTML(Html As String)
Dim dica As String
Dim lala As StringFunctions
lala.Initialize
If Html.Contains("/dica") = True Then
dica = lala.MidExtract(Html,"<dica>","</dica>")
eventoatual = lala.MidExtract(Html,"<eventoid>","</eventoid>")
teste = estado&cidade&eventoatual
kv.PutSimple("EventoID",eventoatual)
If dica.StartsWith("Dica 1") = True Then
kv.PutSimple("Dica1-"&teste,dica)
Thread1.RunOnGuiThread("ativabotoes" , Null)
Else If dica.StartsWith("Dica 2") = True Then
kv.PutSimple("Dica2-"&teste,dica)
Thread1.RunOnGuiThread("ativabotoes" , Null)
Else If dica.StartsWith("Dica 3") = True Then
kv.PutSimple("Dica3-"&teste,dica)
Thread1.RunOnGuiThread("ativabotoes" , Null)
Else If dica.StartsWith("Dica 4") = True Then
kv.PutSimple("Dica4-"&teste,dica)
Thread1.RunOnGuiThread("ativabotoes" , Null)
Else If dica.StartsWith("Dica 5") = True Then
kv.PutSimple("Dica5-"&teste,dica)
Thread1.RunOnGuiThread("ativabotoes" , Null)
Else If dica.StartsWith("Dica 6") = True Then
kv.PutSimple("Dica6-"&teste,dica)
Thread1.RunOnGuiThread("ativabotoes" , Null)
Else If dica.StartsWith("Dica 7") = True Then
kv.PutSimple("Dica7-"&teste,dica)
Thread1.RunOnGuiThread("ativabotoes" , Null)
Else If dica.StartsWith("Dica 8") = True Then
kv.PutSimple("Dica8-"&teste,dica)
Thread1.RunOnGuiThread("ativabotoes" , Null)
Else If dica.StartsWith("Dica 9") = True Then
kv.PutSimple("Dica9-"&teste,dica)
Thread1.RunOnGuiThread("ativabotoes" , Null)
Else If dica.StartsWith("Dica 10") = True Then
kv.PutSimple("Dica10-"&teste,dica)
Thread1.RunOnGuiThread("ativabotoes" , Null)
Else
End If
End If
End Sub