Tutorials & Examples

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

[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] 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:

Turn an old Android phone into your own SMS Gateway (Firebase trigger + SENT/DELIVERED tracking)

Turn an Old Android Phone into Your Own SMS Gateway​

(Firebase trigger + SENT / DELIVERED tracking – Minimal example)

For a long time I was using Firebase Phone Auth to validate access...
 

Attachments

  • SMS Gateway.zip
    10.7 KB · Views: 50

B4Xgoodies_from_walt61 Online

Well,

As JamesGreaves requested,
"So do you not think it would be of value to have even something like @walt61 has created but online?"...
 
Last edited:

Firebase Phone Authentication in B4A using WebView + WebServer (Working Example)

Firebase Phone Authentication in B4A using WebView + WebServer (Step-by-Step Setup)​

This example shows how to implement Firebase Phone Authentication in B4A using a WebView + remote...
 

Attachments

  • webserver.rar
    6.5 KB · Views: 42
  • firebaseauthphone_web.zip
    11.2 KB · Views: 37
Last edited:

In-App Review Class

Hi,

This is In-App Review class :

1 - You need to install these libraries using SDK Manager :
B4X:
com.google.android.play:review
com.google.android.gms:play-services-tasks...
 

Attachments

  • InAppReviewHelper.bas
    11.2 KB · Views: 43
Last edited:

[B4X] AS FeatureRequest - Approved and implemented requests


In this example I show how easy you can display 2 pages, with the features that are under development and...
 

Attachments

  • AS_FeatureRequest Supabase Approved and implemented requests Example.zip
    181.8 KB · Views: 414
Last edited:

[B4X] Firebase Push Notifications 2023+

Google has deprecated the previous method of sending push notifications. It will stop working on June 2024.
If you have an already working solution then you only need to update the B4J side. Do...
 

Attachments

  • B4J-SendingTool.zip
    1.8 KB · Views: 1,887
  • PushClients.zip
    16.2 KB · Views: 90
Last edited:

Get rid of faulty row in table SQLite_Master

After running some faulty code I ended up with a faulty entry in the SQLite SQLite_Master table.
This was a table name called NON_CLINICAL.db.JOURNEYS. This name is faulty and was causing
all...
 

Google Play store - Info for new individual developers

You are probably aware that the play store has new requirements for new individual developers to publish an app.

Having been through the grinder to get my simple app published, I wanted to share...
 

B4X Forum Search Tool - Command Line Search for AI Assistants & Developers

I created a simple Node.js tool that searches the B4X forums directly from the command line. It's particularly useful when working with AI coding assistants like Claude Code, Codex CLI, Cursor, or...
 

[B4X] B4X Forum Repository

Attachments

  • ForumExtractor.zip
    4.4 KB · Views: 289
Last edited:

[B4X] DateUtils - Simplifies Date and Time Calculations

DateUtils is a code module with a set of useful date and time related methods.
It complements DateTime api, it doesn't replace it.

The methods included in DateUtils:

B4X:
'Calculates the period...
 
Last edited:

Libraries that do not support 16kb alignment?

Many have gotten the information about their Apps not aligned with the 16KB. Here is how to check which specific libraries are causing the issue

Note: You have to check for each app individually...
 

Google Authorization – Fix for ClearTokenRequest Class Not Found Error

Last edited:

[B4A] [B4XPages] OSM Maps / FusedLocationProviderClient GMS

May 4, 2024 - Start of tutorial post...

Based on:

The original project was based on the GPS object /...
 
Last edited:

Android 16KB Page Size Compatibility Checker

This script checks for all the necessary markers to be sure your APK/AAB/SO files are 16KB page size compatible.
It has been simplified to easy usage.


What Does This Check?​

Starting with...
 
Last edited:

Android Live Wallpaper tutorial

The user can set live wallpapers by long pressing on the home screen and choosing Wallpapers - Live Wallpapers.
Creating a live wallpaper is not too difficult.
A service is responsible for...
 

Attachments

  • WallpaperExample.zip
    18 KB · Views: 184
Last edited:

"Stick Header" CLV Demo

A demonstration of using a "Stick Header" (Floating Title)...

With Erel's help HERE, I was able to create my version of a "floating title", as Erel has coined it.

If you use ChatGPT...
 

Attachments

  • CLV_StickyHeader.zip
    9.2 KB · Views: 162
  • HomePosition.jpg
    HomePosition.jpg
    77.7 KB · Views: 357
  • ScrolledToMarch.jpg
    ScrolledToMarch.jpg
    77.5 KB · Views: 307
Last edited:

Less back and forth with your smartphone and PC

As mobile developers, we all have the frustrating experience of taking our eyes off our smartphone and staring at the PC screen, and vice versa. Microsoft "Phone Link" is a useful Windows app that...
 

Debugging your app on real phone without USB cable or B4A bridge

Using a USB Cable for debugging apps is faster and easier than using B4A bridge. But as you know, being always connected to the USB port will decrease the battery life. With this instruction, you...
 

[XUI] CustomListView with floating titles

clv_floatingtitle.gif


Title items are added to the list.
A Panel is set above the list. The panel shows the current title when the top visible item...
 

Attachments

  • CLV_FloatingTitle.zip
    9.4 KB · Views: 1,494
Last edited:
Top