Getting started with Basic4GL Mobile
This page describes how to create a program in Basic4GL Mobile and get it running on your Android phone or tablet.
You will need:
Download the installer from the Basic4GL Mobile website. (Click the big blue button that says "Download for Windows 7,8,10").
Run the file and follow the prompts to install Basic4GL Mobile.
Then run Basic4GL Mobile. You should see the Basic4GL Mobile IDE.
From here you can key in a BASIC program, run it and debug it. You can also view the help files, which explain the Basic4GL BASIC language syntax, and the different commands for computation, sprite graphics etc.
It's a good idea to check everything works, by loading and running a sample program:
The snake game should popup in a second window:
You can play snake by left clicking and dragging with your mouse to simulate touching the screen and swiping (actually touching the screen on your PC won't do anything though, even if you have a touch enabled screen).
When you're done, close the window with the mouse or press Esc.
Click here to go to the Google Play store page:
Or search for "Basic4GL" in the Google Play store.
Install the App, and run it.
The first time it runs not much happens, because there's no BASIC program to run.
The important part is the "Please place 'program.vm' in folder:" message, and the folder to place it in. This is often /storage/emulated/0/basic4gl, but not always, so be sure to check where it is on your phone/tablet.
"program.vm" is the compiled program ready to be run on the Basic4GL virtual machine.
The Android Basic4GL App needs this, as well as any files that your program uses (like images etc - snakedemo doesn't use any though).
It's easy to create:
Here you need to transfer program.vm (and any other files your program uses) into the "basic4gl" folder on your phone/tablet.
The recommended way is using a USB cable as described below. But other ways are possible if you don't have a cable such as creating a shared network folder. Often you just need a bit of creativity and usually a 3rd party App.
Switch to the main menu on your phone/tablet and run the "Basic4GL" App again.
The game should start running on your phone/tablet.
To save time, you can configure Basic4GL Mobile to automatically generate program.vm automatically whenever you compile and run your program.
To do this, click "Settings->BASIC runtime settings".
Tick "Create program.vm on compile" and click "OK".
Now whenever you run your program, it will create or replace program.vm in the same folder as your program is saved.
This is the main workflow in Basic4GL Mobile. You develop your program on your PC, then whenever you want to test it on mobile, drag and drop it over and run it there.