Android Tutorial Begin with the B4A Trial version

The B4A Trial Version allows to get a good impression of the possibilities of B4A.

The trial version is limited to 30 days.

Following steps are needed to use the trial version.

Two solutions are possible:

1. Use the Remote compiler which allows a rapid installation.
Needs an Internet connection and Wifi.

2. Use the local compiler which is integrated in the IDE like in the full version, needs the installation of Android SDK.
The compilation is faster and allows a USB connection of a device via a cable.

1. Remote compiler

1.1 Install Java JDKversion v8 (Java Development Kit)

B4A (Basic4Android) is based on Java.

Open this link Java 8 JDK download link

upload_2016-5-18_21-7-52.png


Click on
upload_2016-5-18_21-9-38.png
to accept the license agreement.

Then, download either jdk-8u92-windows-i586.exe for Windows 32 bit
or jdk-8u92-windows-x64.exe for Windows 64 bit.

Install Java.

1.2 Installation of Microsoft .Net Framework 4+

On all newer computers .Net Framework 4+ is preinstalled.

If it is not the case, install:

.Net Framework 4.5.2. for Windows Vista and +
.Net Framework 4.0. for Windows XP

1.3 Installation of B4A Trial Version

Download B4A Trial Version.

Install B4A Trial

Run B4A Trial

In the menu Tools select Configure Paths.

upload_2016-5-18_21-10-9.png


The window below is displayed. Enter the path of the file javac.exe.

The path of the file may be different on your computer from the image below.

upload_2016-5-18_21-10-36.png


Use the Browse button to search for the file with the file explorer.


1.4 Installation of B4A-Bridge on your device.

On your device, download B4A-Bridge from Play Store.

Make sure that Unknown sources is checked in Lock screen and security in the Settings.

Run B4A-Bridge.

upload_2016-5-18_21-11-9.png


Click on
upload_2016-5-18_21-11-37.png
to start the connection.

In the B4A editor (IDE), in the menu Tools/B4A Bridge/Connect click on New IP.

upload_2016-5-18_21-11-58.png


Enter the ID number which is displayed in the upper part of the device screen.

upload_2016-5-18_21-12-17.png


In the lower left corner of the editor you see the confirmation of the connection: B4A-Bridge Connected.

upload_2016-5-18_21-12-40.png


Now you are ready to code.

To run the program click on:
upload_2016-5-18_21-13-10.png



2. Local Compiler

After the installation of points 1.1, 1.2 1.3 and 1.4 you need to install the Android SDK.

2.1 Installation of Android SDK

Download Android SDK.

Install the SDK. The SDK may not work correctly if it is installed in a folder with empty characters (like Program Files). It is recommended to use a folder like C:\Android.

Run B4A.

Click on Run AVD Manager in the Tools menu.

upload_2016-5-18_21-13-39.png


A window like below will be displayed.

upload_2016-5-18_21-14-3.png


Click on Manage SDK in the Tools menu.

upload_2016-5-18_21-14-25.png


A window similar to the one below will be displayed.

upload_2016-5-18_21-14-45.png


Install Platform Tools, Build Tools and at least one Android platform.

Check the files like in the picture above.

To use a USB connection, it is recommended to install also Google USB Driver in Extras.

upload_2016-5-18_21-15-16.png


upload_2016-5-18_21-15-29.png


Run B4A

In the Tools menu select Configure Paths.

upload_2016-5-18_21-16-7.png


Enter the path of the file android.jar.

upload_2016-5-18_21-16-29.png


Use the Browse button to search for the file with the file explorer.


Now you are ready to code.

To run the program click on:
upload_2016-5-18_21-17-5.png
 
Top