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.


Page Code:
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
    72.1 KB · Views: 83

tsteward

Well-Known Member
Licensed User
Longtime User
Please post the logs as text. Right click on the logs tab to copy.
If I run in debug mode the error doesn't happen I just get a screen with no views on it and the IDE log shows nothing when filtered.
Turning filter off shows attached log.
 

Attachments

  • log.txt
    97.9 KB · Views: 75
Upvote 0

toby

Well-Known Member
Licensed User
Longtime User
Sometimes a test project is worth a thousand words
 
Last edited:
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…