Tutorials & Examples

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

[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...
 

Firebase Realtimedatabase Create a room and messages inside

Hello,

I've been working with Firebase's realtimedatabase this week. There is no example yet of how to create rooms and send messages, but it is important for anyone who wants to make a chat in...
 
Last edited:

Android home screen widgets tutorial - part I

Edit: widgets are handled with receivers now. See the attached example.

This tutorial will explain how to implement your own home screen widgets (also named App Widgets).

It is important...
 

Attachments

  • HomeWidgets.zip
    24.6 KB · Views: 1,152
Last edited:

How to create more Instances of the same AVD Emulator

Maybe this info can be useful to someone.
Normally from B4A AVD Manager it's not possible to start more instances of the same AVD normally.
We get a Warning that executing many times the same...
 

Tutorial Android and Raspberry Debian in BT

Hi all. In this example we have Raspberry Pi Rasbian and Android App ( communicate via BlueTooth ).

Through Android we give the command to access and turn off/on the LED, and from the Raspberry...
 

[B4X] Localizator with CSV files

For the first time I try to make my apps multilingual and found this very useful helper. But I prefer to use CSV files (not excel) for the translations. So I combined it with this...
 

Attachments

  • B4XLocalizatorCSVTool.zip
    11.6 KB · Views: 665
Last edited:

✅ Part 1 Basics - Creating long lists using xCustomListView with Lazy Loading - Newer developers

Hello All
After thinking about it yesterday and having a quick chat with Erel, I decided that my previous long list examples were not basic enough for newer B4X developers, so I put together a...
 
Last edited:

? A simple XUI app transfer from B4A to B4J in under 11 minutes

Hello all,
Here is a quick video to show how simple it can be to transfer your B4A projects to B4J when using XUI. It's been on my mind all days now, so I thought I would give it a go and also...
 

USB Cable Connection fo Xiaomi Cell phone

For anyone who has problems connecting b4a to Xiaomi mobile phones, I make the link available where I found the Google usb driver to connect xiaomi mobile phones to b4a via usb. Download the...
 

B4A Change Log (versions history)

Last edited:

[B4X] Cross platform chat layout example


Example of implementing a chat layout.
It is based on xCustomListView. The text is created with a hidden BBCodeView (BCTextEngine) and the bubble is drawn with BitmapCreator...
 

Attachments

  • Chat.zip
    259.1 KB · Views: 2,427

[B4X] B4A, B4i, B4J and B4r API documentation - B4X Object Browser

API documentation - B4a, B4i, B4J and B4R (i.e. B4X) Object Browser (which also includes Code Snippet Management)

Hi everyone,

As you may or may not be aware, I have embarked on a...
 

Attachments

  • upload_2014-12-11_22-32-46.png
    upload_2014-12-11_22-32-46.png
    106.1 KB · Views: 3,074
Last edited:

[B4X] B4X Programming Technics + Track Changes Tool

Hi every one and season's greetings,

(11-1-2020) New version of the tool with timestamp and "Transfered <Checkbox>"


When I program I am used to keep notes in my code to know...
 

Attachments

  • B4XProgTechs.zip
    3.8 KB · Views: 644
Last edited:

[B4X] OkHttpUtils2 / iHttpUtils2 and accept all option

Note that OkHttpUtils2, jOkHttpUtils2 and iHttpUtils2 are actually the exact same b4x library.

Starting from v2.90 it is very simple to initialize the internal http client with the 'accept all'...
 
Last edited:

Hugo - ESP8266 4-button WiFi remote

Not exactly a tutorial or Android-only, but a hint to the community for those who like playing with home automation stuff, and possibly for others as well. I happened across this very nice device...
 

[B4X] Paralells Desktop 15 Windows 10 B4A,B4I,B4J and B4R looks blurry (Fix)

Hello,

i have searched for a long time for a fix for this, every time i have B4A on my second monitor on my mac, then the text was blurry and this was no fun to work with...

Now i have a fix for...
 

[B4X] Drawing with BitmapCreator

BitmapCreator (BC) continues to evolve. Version 4.5 update is a large update with several new drawing features.

Background

At its core BC holds an array of bytes that represent an image...
 
Last edited:

Embed an Http Server in your Android Application

The HttpServer library is a new library, based on an open source project named Jetty. This library allows you to easily embed an Http server in your application.

Http server means that you...
 

Attachments

  • HttpServerExample.zip
    58.1 KB · Views: 7,765
Last edited:

[B4X] B4XTable - Load data from SQL database

B4XTable.SetData expects a List where each entry in the list is an array of objects with the data of a single row.

The data can come from any source you like...
 

Attachments

  • B4XTableFromSQL.zip
    336.6 KB · Views: 4,739

Sharing files from your app with File Provider

Attachments

  • FilePicker.zip
    31.6 KB · Views: 2,841
Last edited:
Top