Cursussen/Courses Codesnippets     Top 
B4A-lists - Getting started


1. Environment
This example is build with the B4A IDE version 10.2. Check out the website for the installation procedure.


2. B4A-bridge
For testing and installing the app the B4A-bridge app (version 2.62) is installed and used. This app allows you to connect your device with a USB cable or wireless.


3. App description
A general to-do list app. This example demostrates the use of local textfiles to store information in.
The app consists of 3 B4X pages: category, subcategory and item.
In the main page (items) there will be 2 dropdown lists: category dropdown and subcategory dropdown. In the subcategory page there will be 1 dropdown list for the category selection.
The lists are stored in local textfiles where the name of the category, the name of the subcategory and the name of the item are part of the textfile name. So don’t use special characters in the category, subcategory or item names. A space is allowed.


4. New project
Start up the B4A IDE and click on File / New / B4Xpages.


5. Connect device
Connect your device to the computer. When using the USB cable from your device and the tool B4A-Bridge you can test the app quickly. Click on Tools / B4A Bridge / Connect / .


6. App setup
In the Main tab change the application label to B4A lists_textfiles_notes. This label is used on the device.
Change in the build configurations the package name to b4a.lists_textfiles_notes.
Change the build mode to Debug.


7. First run
Click on the run arrow (or press F5) to start the build. The app will be installed on your device. (Don’t forget to activate the developer options on your device). You should get a “hello world” message when you click on the button. This is the standard template app.
Click “Install” and then “Open”. If your device has a different language setting then the text will be in that language.
Allright, we have a running app!