Tutorials & Examples

Android development starts here. Please do not post questions in this sub-forum.

[B4X] Features that Erel recommends to avoid

Many things have changed in B4X and also in the underlying platforms. I will try to list here all kinds of (old) features that have better alternatives.
B4X is backward compatible so these...
 
Last edited:

[B4X] "Code Smells" - common mistakes and other tips

"Code smells" are common patterns that can indicate that there is a problem in the code. A problem doesn't mean that the code doesn't work, it might be that it will be difficult to maintain it or...
 
Last edited:

[B4X] Documentation Booklets

The B4X documentation booklets are available in PDF format, Download Link.
All files are included in the zip file in the link above, pdf booklets and all the source code.

You can also...
 
Last edited:

[B4X]How to Implement Lottie in B4XPages (AXrLottie B4A and iLotttie B4i)

This is B4XPages example for LOTTIE implementation on Android and iOS

B4A Implementation

Uses AXrLottie. Download the library and dependencies here...
 

Attachments

  • LottieB4XExample.zip
    102 KB · Views: 18
Last edited:

[B4X] Supabase - Sign In Anonymously


Supabase now supports anonymous user login, the B4X library now too...
 

Share SQLite database between 2 devices

This is just a proof of concept to show that Device A behave like a server hosting a database and Device B connects to it accessing the "shared" database. It is a response to this question...
 

Attachments

  • ShareDB.zip
    17.6 KB · Views: 89
Last edited:

[B4X] AS TextFieldAdvanced - ComboBox

Attachments

  • AS TextFieldAdvanced ComboBox Example.zip
    179.5 KB · Views: 68

[B4X] AS Settings - DescriptionItem


This is a description item, this can be used to provide more information about a particular feature.

1707947080201.png
...
 

[B4X] AS Settings - ComboBox Property


With this property, the user can quickly select one of several options via a combobox. It use the native combo box for...
 

[B4X] AS Settings - Text Property


This property is for text input. Normal text, numbers or decimal numbers.

1707945375522.png


AS_SettingsTextExample.gif


Example...
 

[B4X] AS Settings - ActionClean Property


This property is like the action property, only in a cleaner version. Here there is only an icon and the display...
 

[B4X] AS Settings - Action Property


This property is used, for example, to manage properties that are on another page. Or to open links, open a picker so...
 
Last edited:

[B4X] AS Settings - Boolean Property


(1) FTZzgV4CZDcESNrYZIq5EviLuJFH2gGZ8o09ODFHc5Fe4IrWdZ.png

Example
B4X:
'Boolean
AS_Settings1.MainPage.AddProperty_Boolean("Basic","PropertyName_1","Boolean Property...
 

[B4X] AS Settings - SelectionList Property


With this property, you can offer the user several options and he can then select either one or more.
(57) mage.png
...
 

Attachments

  • AS Settings SelectionList Example.zip
    179.2 KB · Views: 64
Last edited:

B4A Social Network Version 1.50

[B4X] AS Scheduler - MonthView HeatMap

Attachments

  • AS Scheduler MonthView Heatmap Example.zip
    71.9 KB · Views: 80

Athom Pre-Flashed TASMOTA Infrared Remote Controller with B4X (Home Automation)

[B4X] AS PopupMenu with icons


(53) mage.png
(54) mage.png


B4X:
Private Sub ShowMenu
    
    aspm_Main.Initialize(Root,Me,"aspm_Main")...
 

Attachments

  • AS PopupMenu with Icons.zip
    177.4 KB · Views: 108

[B4X] AS TextFieldAdvanced - Underline Style

Attachments

  • AS TextFieldAdvanced Underline Example.zip
    203.4 KB · Views: 89

[B4X] Supabase - INSERT or UPDATE a record and return it


It is possible to create a new data record and return it directly.
Use the...
 

[B4X] Supabase - Column Alias


You can use column aliases in Supabase. All you need to do is write the alias name, a...
 

[B4X] AS Settings - Deactivate a property if a certain condition is met


You need AS_Settings V2.00+ for this example

The object property has a new variable called "view". It contains the...
 
Last edited:

[B4X] AS Settings - Master and child switch


You need AS_Settings V2.00+ for this example.

In the following example, PropertyName_2 and PropertyName_3 are set to...
 
Last edited:
Top