N NightRaven Member Apr 20, 2022 #1 B4X: Sub Globals Private selfieimage As B4XImageView End Sub Sub Activity_Create(FirstTime As Boolean) selfieimage.Bitmap = ActivityInOut.bmpimg End Sub When I run this code there are times that it is working and there are times that it displays the error object should first be initialized (b4xbitmap) How could I resolve this?
B4X: Sub Globals Private selfieimage As B4XImageView End Sub Sub Activity_Create(FirstTime As Boolean) selfieimage.Bitmap = ActivityInOut.bmpimg End Sub When I run this code there are times that it is working and there are times that it displays the error object should first be initialized (b4xbitmap) How could I resolve this?
Erel B4X founder Staff member Licensed User Longtime User Apr 20, 2022 #2 Don't waste your time with activities. Switch to B4XPages. Upvote 0