Tutorials & Examples

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

[B4X] Supabase - Database OrderBy


You can order by just one column, or with multiple columns.

Available sorting commands...
 

[B4X] Supabase - Database Limit and Offset


LIMIT and OFFSET allow you to retrieve just a portion of the rows that are generated by...
 

[B4X] Supabase - Database Joins


In the following example I make a join into the "public.users" table and need the column...
 
Last edited:

[B4X] Supabase - Database CRUD


This is a very simple tutorial on how to use the CRUD options. A more detailed tutorial is coming soon...
 
Last edited:

[B4X] Supabase - Column Alias


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

[B4X] Supabase - Authentification SignIn with Google


In this example, we will take a look at how we can implement authentication using Google...
 

Attachments

  • Supabase Google Auth Example.zip
    10.4 KB · Views: 145

[B4X] Supabase - Authentification SignIn with Apple


In this example, we will take a look at how we can implement authentication using Apple...
 

Attachments

  • Supabase Apple Auth Example.zip
    4 KB · Views: 122

[B4X] Supabase - Authentification

The client library does the work for you, you don't have to worry about renewing the access token or using...
 
Last edited:

[B4X] SQL with Wait For

The new resumable subs feature, introduced in B4J v5.50, B4i v4.00 and B4A v7.00 (to be soon released), makes it simpler to work with large data sets with minimum effect on the program...
 

[B4X] Sophisticated sorting with B4XComparatorSort

B4XCollections v1.13 includes a new sorting feature named B4XComparatorSort.
This feature allows sorting using a custom comparator class.
The comparator class is a class that you create and it...
 

Attachments

  • Project.zip
    15.5 KB · Views: 338
Last edited:

[B4X] Smart String Literal

The "smart string" literal is a more powerful version of the standard string literal.
It has three advantages:
  1. Supports multi-line strings.
  2. No need to escape quotes.
  3. Supports string...
 
Last edited:

[B4X] Simple audio call over internet with own TURN/relay server

Attachments

  • [B4A] Socket.io Simple Call Example.zip
    116.8 KB · Views: 987
  • [B4i] Socket.io Simple Call Example.zip
    111.7 KB · Views: 738
  • [Server] Socket.io Simple Call Example.zip
    2.4 KB · Views: 952
Last edited:

[B4X] Sharing modules and classes

In newer versions of B4A, B4J and B4i it is simple to share code modules between projects, including projects targeting other platforms.

More information here...
 
Last edited:

[B4X] Sharing layouts between platforms

[B4X] Sending emails with Gmail REST API

This solution is compatible with B4A, B4J and B4i.

Up until now there were two ways to send emails:

1. Using the default mobile app which required the user to actually send the message...
 

Attachments

  • Gmail.zip
    59.7 KB · Views: 2,882

[B4X] SELECT - don't waste tags

[A simple suggestion, not addressed to "experts"]

I am almost certain that some members, having to identify which view triggered an event, use the tags.

For example:

You have a kind...
 
Last edited:

[B4X] RSS Viewer using xCustomListView

Attachments

  • RSS Example.zip
    20.7 KB · Views: 877
Last edited:

[B4X] Resumable subs that return values (ResumableSub)

Last edited:

[B4X] Resumable subs and the index pattern

The "index pattern" is a pattern that you can see in many examples and libraries where resumable subs are used. It is a simple solution to avoid race conditions and unexpected states.

The...
 
Last edited:

[B4X] Regular expressions (RegEx) tutorial

Regular expressions are very powerful and make complicate parsing challenges much easier.
This short tutorial will describe the usage of regular expressions in Basic4android.
If you are not...
 
Last edited:
Top