Android Question Error after upgrading to 3.2 beta

micro

Well-Known Member
Licensed User
Longtime User
Hi to all
This is my Sub to load the layout:

B4X:
Sub CaricaLayout(layout As String, vis As Boolean)
        If Pannello.IsInitialized Then
            Pannello.RemoveViewAt(0)
        End If
        Pannello.Initialize("")
        Pannello.LoadLayout(layout)
        Activity.AddView(Pannello, 0, 0, 100%x, 100%y)
        Pannello.Color = Colors.ARGB(255, 0,0,0)
        Pannello.BringToFront
        Pannello.Visible = vis
End Sub

Before upgrading everything worked but now in this line:
Pannello.LoadLayout(layout)
Compare this error:
"LastException java.lang.RuntimeException:java.lang.NullPointerException"
Why?
Thanks
 

micro

Well-Known Member
Licensed User
Longtime User
azz :(
I forgot to backup the project before the upgrade and now
back to version 3 get this error:

Parsing code. 0.0x
Compiling code. Error
Impossibile leggere oltre la fine del flusso.

And is impossible load the bal files with designer :confused:
And now?
 
Upvote 0

micro

Well-Known Member
Licensed User
Longtime User
ok this is my mistake
but now Erel can see how to remedy that error is displayed when load a layout in a panel?
It's a bug?
Thanks
 
Upvote 0
Top