Tutorials & Examples

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

[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,996
  • PushClients.zip
    16.2 KB · Views: 196
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: 357
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: 262
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: 218
  • HomePosition.jpg
    HomePosition.jpg
    77.7 KB · Views: 430
  • ScrolledToMarch.jpg
    ScrolledToMarch.jpg
    77.5 KB · Views: 396
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,556
Last edited:

[B4X] RandomUser API - SMM + lazy loading list + DDD

1760519045466.png


Cross platform example of showing a list of users, retrieved from https://randomuser.me/

The API returns a list with the data of 150 random users. The list is parsed and added...
 

Attachments

  • RandomUser.zip
    187.7 KB · Views: 289

User Login Demo - how-to features

Hi y'all,
I've been working on a demonstration app that would show a bunch of how-to's.

Specifically, how to use an "admin" user and a regular user (non-admin) for login data admin (CRUD).
All...
 

Attachments

  • UserAdminDemo.zip
    30.1 KB · Views: 259
  • 1.jpg
    1.jpg
    179 KB · Views: 510
  • 3.jpg
    3.jpg
    264.9 KB · Views: 504
Last edited:

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: 692
Last edited:

OSMDroid - MapView for B4A tutorial

Attachments

  • 01 - SimpleMap.zip
    5.8 KB · Views: 5,245
Last edited:

Lottie Example with 16kb support

This example is based on the Lotti Library by DonManfred found here. (It still works)

I tried it on 16kb android 15 emulator and...
 

Attachments

  • LottieEx16kb.zip
    13.8 KB · Views: 224
Last edited:
Top