Iniziato progetto B4XPages... già incominciano i problemi:
ho delle view ImageView nel layout MainPage
e la dichiarazione di queste View sono in B4XMainPage:
Sub Class_Globals
Private Root As B4XView
Private xui As XUI
'Stato applicazione
Private img1 As ImageView
Private img2 As ImageView
Private img3 As ImageView
'Pannello di attesa
Private pnlWaiting As Panel
Private lblWaiting As Label
End Sub
ERRORE
... 45 more
Error occurred on line: 34 (B4XMainPage)
java.lang.RuntimeException: java.lang.RuntimeException: Object should first be initialized (ImageView).
Did you forget to call Activity.LoadLayout?
at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:155)
at anywheresoftware.b4a.objects.PanelWrapper.LoadLayout(PanelWrapper.java:134)
at anywheresoftware.b4a.objects.B4XViewWrapper.LoadLayout(B4XViewWrapper.java:329)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:732)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:351)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:157)
at anywheresoftware.b4a.debug.Debug.delegate(Debug.java:262)
at af.software.ecureader.b4xmainpage._b4xpage_created(b4xmainpage.java:55)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.debug.Debug.CallSub4(Debug.java:318)
at anywheresoftware.b4a.debug.Debug.CallSubNew2(Debug.java:285)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.keywords.Common.CallSubDebug2(Common.java:1087)
at af.software.ecureader.b4xpagesmanager._createpageifneeded(b4xpagesmanager.java:1074)
at af.software.ecureader.b4xpagesmanager._showpage(b4xpagesmanager.java:431)
at af.software.ecureader.b4xpagesmanager._addpage(b4xpagesmanager.java:251)
at af.software.ecureader.b4xpagesmanager._addpageandcreate(b4xpagesmanager.java:265)
at af.software.ecureader.b4xpagesmanager._initialize(b4xpagesmanager.java:171)
at af.software.ecureader.main._activity_create(main.java:422)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:732)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:351)
perchè?