Android Question LoadLayout trouble with b4a 6.80

joergb

Member
Licensed User
Longtime User
Hallo

I have an older app , created with b4a 4.x.
Now I updated to B4A 6.80 and at first , everything seems to be fine.
But now I get an Exception

Error occurred on line: 109 (and_ArtiEing)

java.lang.RuntimeException: java.lang.RuntimeException: Object should first be initialized (ImageView).
at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:166)
...

Line 109 is
Activity.LoadLayout("ArtiEing")

On the Phone runs Android 4.3
The same procedure on an Android 4.4 or higher Device run's.

Is this a bug in B4A, is there something I have to care for or doesn't supports B4A V6.80 older Android Systems

thank in advance
Jörg
 

DonManfred

Expert
Licensed User
Longtime User
We cannot guess. Post the code you are using.
Ideally in a small project and upload the project. File->Export as zip.
 
Upvote 0

joergb

Member
Licensed User
Longtime User
I think I found it

In the Designer, I put an ImageView and define the Image there in the Designer
Actualy I ddon't need the ImageView , so I set Visible to False and there ImageView is not used in the Code,
I don't delete it, because I guess I need it in the future.

These was the Reason for the Exception , I delete the ImageView and it works.

Don't know why, but in the project-dir on the Phone, b4a creats a folder named "virtual_assets" and here I find all the used bmp-files.
On a newer Android these folder dosn't exists.
 
Last edited:
Upvote 0
Top