When I call a routine from an httpd job I get java.lang.RuntimeException: Object should first be initialized (View).
when I call it from, say a button, it works.
so:
createalbum("a string") from
fails but from a button click event it works. What is it about http job to cause this?
when I call it from, say a button, it works.
so:
createalbum("a string") from
B4X:
Sub JobDone(Job As HttpJob)
The subroutine:
Sub createalbum (str As String)
Dim p As B4XView =clv1.GetPanel(artindex).GetView(1) 'expanded panel
p.LoadLayout("lytalb")
lblAlb.Text = str 'added a label to the expanded panel
End Sub