My first program: minimized?

Wido

New Member
I'm trying out Basic4Android. It is a fantastic idea, now I can make educational apps for an Android phone or tablet.

My first program is just a test: clicking on a button must appear a message box.
THe code is correct, the emulator is connected. De compiler is working without errors. But all what I see in the emulator is just a little bar with the name of the app.

The skin of the emulator is HVGA (320X480).
I lay-out variant in the designer is 320x480.

What did I do wring?
 

Attachments

  • Hallo in B4A.jpg
    Hallo in B4A.jpg
    61.3 KB · Views: 227

Widget

Well-Known Member
Licensed User
Longtime User
I'm trying out Basic4Android. It is a fantastic idea, now I can make educational apps for an Android phone or tablet.

My first program is just a test: clicking on a button must appear a message box.
THe code is correct, the emulator is connected. De compiler is working without errors. But all what I see in the emulator is just a little bar with the name of the app.

The skin of the emulator is HVGA (320X480).
I lay-out variant in the designer is 320x480.

What did I do wring?

Most likely newbie mistake (I know 'cause I did them too) is to forget to add
Activity.LoadLayout("yourlayoutname")
in the sub Activity_Create routine. (I am assuming you used the Designer to place views on the screen, if not, disregard this solution).

In other words, whenever you use the Designer, you need to load the layout created by the designer.

Widget
 
Upvote 0
Top