Tutorials & Examples

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

[B4X] Tips for B4X developers

After making more than 58k posts in the forum, I decided that it is a good time to build a list of tips and common mistakes. 12 points, in no particular order:

  1. Separate code from...
 
Last edited:

[B4X] Tip: Always set FTP.PassiveMode to True

I've just wasted an hour trying to understand why a desktop program that I'm using for many months failed to upload a file to a FTP server.
I realized that the only thing that was recently changed...
 
Last edited:

[B4X] Tip - ROBOCOPY error related to shared files folder

You download a project from the forum and when you run it, you get an error message similar to:

B4X:
B4A Version: 10.2
Java Version: 8
Parsing code.    (0.11s)
Building folders structure...
 

[B4X] Tip - Modified server response

While analyzing a Crashlytics crash report of a small app of mine I was surprised to see the following error:

Fatal Exception: java.lang.NumberFormatException
For input string...
 

[B4X] The Networker's Guide To The Galaxy


The purpose of this tutorial is to cover the various communication options available for B4X developers.

Will start with two important utilities:
 

[B4X] TextEditor - Save and load external files

This is a B4i and B4A example, which demonstrates various external files related tasks.

1626784777442.png
1626784790557.png


The behavior is not exactly the same as the platforms capabilities and behavior...
 

Attachments

  • TextEditor.zip
    184.2 KB · Views: 836
Last edited:

[B4X] Text, Strings and Parsers

This guide is relevant for B4A, B4i and B4J.

There are all kinds of tools and libraries available for the different text based formats. The purpose of this guide is to organize the available...
 
Last edited:

[B4X] SwiftButton - Adding Click/LongClick event

The next code add the funcionality in b4x to capture the click & longClick using Touch, in case of b4j add the option to fire the longClick using the Right Mouse Click or the secondary mouse...
 

[B4X] Supabase Storage - Download file with Progress


This is a very simple tutorial on how to download a file and show the progress in a...
 

Attachments

  • Supabase Storage Progress Example.zip
    11.9 KB · Views: 148

[B4X] Supabase - Supachat chat example app


This is a simple B4X chat example with supabase as backend.


Setup...
 

Attachments

  • Supabase Chat.zip
    198 KB · Views: 101
Last edited:

[B4X] Supabase - Storage Image Transformations


Supabase Storage offers the functionality to transform and resize images dynamically. Any...
 

[B4X] Supabase - Storage Files


This is a very simple tutorial on how to use the storage file options.

Upload File...
 

[B4X] Supabase - Storage Bucket


This is a very simple tutorial on how to use the storage bucket options.

CREATE...
 

[B4X] Supabase - Sign In Anonymously


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

[B4X] Supabase - Realtime Presence


Share state between users with Realtime Presence...
 

[B4X] Supabase - Realtime Postgres Changes


Listen to Postgres changes using Supabase Realtime...
 

[B4X] Supabase - Realtime Broadcast example app


This is a simple B4X broadcast example with supabase as backend.

...
 

Attachments

  • Supabase Broadcast Example.zip
    185.1 KB · Views: 151
Last edited:

[B4X] Supabase - Realtime Broadcast


Send and receive messages using Realtime Broadcast...
 

[B4X] Supabase - Realtime


This is a very simple tutorial on how to use the Realtime module. A more detailed...
 

Attachments

  • Supabase Realtime Example.zip
    10.7 KB · Views: 153
Last edited:

[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...
 
Top