Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Dim myButton As Button
End Sub
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
'Activity.LoadLayout("Layout1")
myButton.Initialize("myButton")
myButton.Text="Launch intent"
Activity.AddView(myButton,20dip,50%Y-40dip,100%X-40dip,80dip)
End Sub
Sub startingIntent
StartService(myService)
Dim i As Intent
i.Initialize("", "")
i.SetComponent("com.android.settings/.Settings")
StartActivity(i)
End Sub
Sub myButton_Click
CallSubDelayed(Me,"startingIntent")
End Sub