Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
Activity.LoadLayout("1")
Dim O As Object = Label1.Background
If O Is ColorDrawable Then
Log(GetColor(O))
End If
End Sub
Sub GetColor(CD As ColorDrawable) As Int
Dim JO As JavaObject = CD
Return JO.RunMethod("getColor",Null)
End Sub