Sub Process_Globals
End Sub
Sub Globals
Dim IME As IME
Dim EditText1 As EditText
Dim Button1 As Button
Dim EditText2 As EditText
Dim phone1 As Phone
End Sub
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("haberyolla")
phone1.SetScreenOrientation(-1)
IME.Initialize("IME")
IME.AddHeightChangedEvent
IME_HeightChanged(100%y, 0)
StartService(OneSMS)
End Sub
Sub IME_HeightChanged(NewHeight As Int, OldHeight As Int)
EditText2.Top = NewHeight - EditText2.Height
Button1.Top = EditText2.Top
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub Activity_KeyPress (KeyCode As Int) As Boolean 'Return True to consume the event
If KeyCode = KeyCodes.KEYCODE_BACK Then
Activity.Finish
StartActivity("Obstliste")
End If
End Sub
Sub Button1_Click
Dim textnull As String
Dim link As String
Dim BName As String
If EditText1.Text="" Then
Msgbox("Bitte gib eine Kategorie ein.","")
Return
End If
textnull = codlar.Left(EditText1.text,2)
For k = 1 To textnull.Length -1
If codlar.MidLengh(textnull, k, 1) = "G" OR textnull = "GB" Then
BName = su.EncodeUrl(Benutzername, "UTF8")
OneSMS.kime = codlar.mid(EditText1.text,2)
CallSubDelayed(OneSMS, "ciftsifir")
Return
End If
IME.HideKeyboard
Activity.Finish
StartActivity("Obstliste")
End Sub