Android Question B4A Declare StartMessageLoop

Shelby

Well-Known Member
Licensed User
Longtime User
I'm toward the end of Erel's tutorial on Codes Modules and Classes. My B4A program can't understand StartMessageLoop which is easily added to Erel's code with B4J. I don't know how to declare StartMessageLoop or perhaps I need to activate a library which might allow it.
Any ideas?
Thanks

B4X:
  'Non-UI application (console / server application)
 
 
Sub Process_Globals
    Private Stack1 As Stack
    Private timer1 As Timer       
End Sub

Sub Activity_Create(FirstTime As Boolean)
    Stack1.Initialize (Me, "Stack1")
    Stack1.push(1).Push(2).Push(3)   
    Do While Stack1.Size > 0
        Log(Stack1.Pop)
    Loop   
    Stack1.Name = "aaa"
    StartMessageLoop   
    
End Sub

Sub Stack1_StackEmpty
    Log("stack is empty...")
End Sub

Sub Globals
End Sub
 

DonManfred

Expert
Licensed User
Longtime User
My B4A program can't understand StartMessageLoop
b4a does not have a StartMessageLoop

You are talking about B4J!
Sounds like you trying to use B4J Code in and B4A App
 
Upvote 0

Shelby

Well-Known Member
Licensed User
Longtime User
Yes thanks Don I indeed am trying to follow along with the B4A. Don and Erel: Is there some better way to learn and follow along with my B4A tutorials? I don't know of many B4A tutorials; perhaps you know of a better method to learn.
 
Upvote 0

Shelby

Well-Known Member
Licensed User
Longtime User
Thanks Erel. Is there some better way to learn and follow along with my B4A tutorials? I don't know of many B4A tutorials; perhaps you know of a better method to learn. Maybe you think I should be patient and hang in there with the 32 tutorials.
 
Upvote 0

Cableguy

Expert
Licensed User
Longtime User
Try te "beginners guide" by Klaus, he covers all if b4x and are the most up to date docs available.
You can find them in his signature
@klaus
 
Upvote 0
Top