Tutorials & Examples

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

Tips or Tricks for using Android Emulator

I want to share a few tricks when using the Android Virtual Device or Emulator.

1. Increase font and icon size
Go to Settings (gear icons) from drawer/desktop/slide down menu and choose...
 

Attachments

  • 1703145831287.png
    1703145831287.png
    313.3 KB · Views: 3,029
Last edited:

[Video Tutorial] High and Low Game for beginners

In this tutorial, I took you through the process of creating a trending game (High and Low) where a user tries to guess a number and gets hints if their guesses are high, low or correct.

Please...
 

[AI] How to generate an automated changelog for a B4A.b4xlib

Hi Fam!

So i jumped into the AI wagon. As Im currently creating the B4XDaisy UIKit, i had an idea last week about creating automated changelogs about this beautiful TailwindCSS based...
 

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: 175

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

  • firebaseauthphone_web.zip
    11.2 KB · Views: 135
  • webserver.rar
    6.5 KB · Views: 159
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: 141
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: 520
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: 2,051
  • PushClients.zip
    16.2 KB · Views: 254
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: 386
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: 311
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: 249
  • HomePosition.jpg
    HomePosition.jpg
    77.7 KB · Views: 460
  • ScrolledToMarch.jpg
    ScrolledToMarch.jpg
    77.5 KB · Views: 449
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...
 
Top