Tutorials & Examples

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

Optimizing Private And Professional Work

Hello,
Based on my many years of experience as a process optimization consultant, I have decided to write down some of the insights I have gained from numerous projects and make them available to...
 

Attachments

  • Essay.zip
    262.8 KB · Views: 270

ElevateUI Demo in B4XPage and Activity

Check Elevate UI Demo 3 at post#6

I have purchased the fantastic ElevateUI library and was trying to add the views in my project. Since the library comes without any demo or manual, I was...
 

Attachments

  • ElevateUI_Demo.zip
    73.2 KB · Views: 362
Last edited:

HOW YOU CAN USE ScrollView

hello
if you have a panel and you want scroll this panel then you use this source.

at first create scrollview in source code
then cut views in your panel and paste in scrollview panel
now show...
 

Attachments

  • scroll.rar
    443.8 KB · Views: 311
  • Untitled.png
    Untitled.png
    16.8 KB · Views: 392
Last edited:

[B4X] [B4XPages] BCTextEngine parser: B4X Code Highlighter

java_QIDqgmNTqq.png


firefox_5AjleJ4uQg.png


This is an example of creating a custom parser for...
 

Attachments

  • CodeHighlighter.zip
    14.4 KB · Views: 1,223
Last edited:

[B4X]Automatically package b4xlib libraries

When I was writing the b4xlib library, I encountered complicated steps, and I needed to decompress and compress the b4xlib file (zip format) frequently.

So I wrote this tool to automatically...
 

Attachments

  • Automatic packaging as b4xlib library.zip
    901 bytes · Views: 269
  • B4XLibs.b4xtemplate
    10.2 KB · Views: 289
Last edited:

GPS / GNSS tutorial

Attachments

  • GPSExample.zip
    15 KB · Views: 489
Last edited:

[B4X] PocketBase - How to reach api via smartphone on the same network when hosted locally


If you develop with B4J with Pocketbase, then you simply enter the localhost address...
 

SQL (SQLite) InstrRev

SQLite has the string function Instr, which finds the first occurrence of a specified string in another string.
There is no InstrRev function though to find the last occurrence of a string within...
 

[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,654
  • PushClients.zip
    16.8 KB · Views: 666
Last edited:

[B4XPages] Single page with no action bar and other pages with action bar

This is an example of how to make one of the pages show without the action bar while the others do show it.

Note that usage of IME in the main activity, to find the action bar height.

In each of...
 

Attachments

  • DynamicActionBar.zip
    16.3 KB · Views: 311

Camera2 - Still images and videos

Camera2 library is based on the Camera2 API introduced in Android 5 (API 21).
It is designed to work together with CamEx2 class.
It is supported by B4A v7.3+. The library will be included as...
 

Attachments

  • CamEx2.zip
    22.5 KB · Views: 645
Last edited:

CREATE, UPDATE, DELETE AND CONSULT REGISTERS ON GOOGLE SHEET FROM YOUR APPLICATIONS

Searching the internet I found a service that allows you to convert any google sheet into a json api, it has a free version that allows you to consult and add data, connecting to the api is quite...
 

کانال تلگرام اختصاصی رفع خطاهای زبان فارسی Exclusive Telegram Channel for Persian Language Error Correction

If @Erel permits me, I will introduce my Telegram channel for error correction and provide examples specifically for the Persian language.
I am gathering all sorts of errors and putting them...
 

Conversion of B4A to B4XPages

Introduction

The conversion of the first of my B4A Apps to the newer B4XPages structure was not trivial and involved over 20 hours of research, overcoming misunderstandings, and finding...
 

Attachments

  • Section 1-2.pdf
    469.4 KB · Views: 1,223
  • Section 3 Step 12.pdf
    488.1 KB · Views: 976
  • Section 3 Step 1-11.pdf
    501.9 KB · Views: 1,107
  • Section 3 Step 13.pdf
    456.3 KB · Views: 1,109
  • Section 3 Step 14.pdf
    450.6 KB · Views: 953
  • Section 3 Step 15-16.pdf
    457.5 KB · Views: 1,054
  • Section 4-5.pdf
    393.4 KB · Views: 919

Android 14 / targetSdkVersion 34 and Services

B4A v13.0+ should be used with targetSdkVersion 34+.

Android 14 continues the longtime trend of making services less flexible and more difficult to use (converging to iOS background tasks...
 
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: 399
  • LiveWallpaper.zip
    8.9 KB · Views: 398
Last edited:

[B4X] Localizator - Localize your B4X applications

Localizator is a cross platform solution for strings localization.

The strings are defined in an Excel workbook.

SS-2016-07-07_17.00.16.png


They...
 

Attachments

  • B4J_LocalizatorExample.zip
    5.7 KB · Views: 1,843
  • ExcelWorkbook.zip
    7.1 KB · Views: 2,299
  • B4i_LocalizatorExample.zip
    6.1 KB · Views: 1,501
  • Localizator.bas
    4.4 KB · Views: 2,258
  • B4A_LocalizatorExample.zip
    11.6 KB · Views: 1,817
  • B4J_LocalizatorConverterSource.zip
    10 KB · Views: 1,038
Last edited:

Running B4A and B4J under Linux with wine - fully functional

I have just managed to install B4A and make it run (including B4ASdkManager) on my Xubuntu 18.04 and, since I have lost two days and one night putting things together, I thought it will be a good...
 
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: 1,464
  • [B4i] Socket.io Simple Call Example.zip
    111.7 KB · Views: 1,158
  • [Server] Socket.io Simple Call Example.zip
    2.4 KB · Views: 1,394
Last edited:

Introduction to the libGDX library

Introduction to the libGDX library

What is libGDX ?

libGDX is a game engine. As we saw in the first tutorial, a game engine provides a framework to create...
 
Last edited:
Top