Android Question Added b4xpage to project and get error when loading

tsteward

Well-Known Member
Licensed User
Longtime User
I Just added a new page to my B4XPages project
The layout simply has one label in it at the moment
Not sure what I have done wrong. I have tried recreating the layout but the result is the same.
Surely I have over looked something.


Code: Copy
Sub Class_Globals
    Private Root As B4XView 'ignore
    Private xui As XUI 'ignore
End Sub

'You can add more parameters here.
Public Sub Initialize As Object
    Return Me
End Sub

'This event will be called once, before the page becomes visible.
Private Sub B4XPage_Created (Root1 As B4XView)
    Root = Root1
    'load the layout to Root
    Root.LoadLayout("testtony")
End Sub

'You can see the list of page related events in the B4XPagesManager object. The event name is B4XPage.
 

Attachments

  • Screenshot 2022-09-29 223658.png
    Screenshot 2022-09-29 223658.png
    72.1 KB · Views: 287
Sometimes a test project is worth a thousand words:)
 
Last edited:
Upvote 0
Thanks Erel I put Starter service back.
I found my error. I didn't initialize.
All fixed thank you.
I should have just went to bed and look next day LoL
 
Upvote 0
Back
Top