Tutorials & Examples

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

[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,910
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,832

B4XGoodies Check App

Hi Friends,

As you know, I made an online sheet of Walt's B4XGoodies List and he helped me by providing download links of html and version text files...
 

Attachments

  • B4XGoodies_Check_1.002.zip
    13.7 KB · Views: 697
  • B4XGoodies_Check_1.003.zip
    13.7 KB · Views: 649
  • B4XGoodies_Check_1.004.zip
    139.2 KB · Views: 680
Last edited:

Sharing files from your app with File Provider

Attachments

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

Reading NDEF data from NFC tags

Using the NFC library you can read NFC tags formatted in NDEF form (NFC Data Exchange Format).
You can read more information about the internal process here: NFC Basics | Android Developers...
 

AndroidX SDK

Android Support Library was implemented and maintained in the last 8 years by Google. It includes a wide range of features and it hides many of the differences between the various Android...
 
Last edited:

MQTT Chat with Auto Discovery

Attachments

  • MqttChatWithAutoDiscovery.zip
    11.7 KB · Views: 3,723
Last edited:

Background Services in Android 8+ - Observations !

[B4X] Resumable subs and the index pattern

The "index pattern" is a pattern that you can see in many examples and libraries where resumable subs are used. It is a simple solution to avoid race conditions and unexpected states.

The...
 
Last edited:

Download huge files with HttpUtils2

Attachments

  • LargeFileDownload.zip
    11.5 KB · Views: 3,263
Last edited:

Library compilation - Compile your project to a library

Starting from Basic4android v2.50 you can compile your project, or part of it to a regular library.

Why should I compile a library?
  • Break large projects into several smaller (more...
 

Upgrading a Google Maps app to targetSDK 28

I decided to become Google's darling. After a very old B4A app, that went perfect for many many years (API 8, targetSDK 14), was threatened to be thrown out of the app store, I decided to waste my...
 
Last edited:

POU Game example

Hi all.
Here is a simple pou game example (only one room).


This example use this another example, but now with images...
 

[B4X] SELECT - don't waste tags

[A simple suggestion, not addressed to "experts"]

I am almost certain that some members, having to identify which view triggered an event, use the tags.

For example:

You have a kind...
 
Last edited:

[B4X] xCLV - lazy loading with text input

The attached B4J example demonstrates how to implement lazy loading with editable items.

java_nAZX0TSYJE.png


There are several interesting points...
 

Attachments

  • LazyLoadingWithTextInput.zip
    6 KB · Views: 1,148
Last edited:

Decimal Number to Greek Words - Olografos

With this example I show how a decimal number can be translated to Greek words.

For example: Log(DeployCurrencyToText(1234.04)) give the result χίλια διακόσια τριάντα τέσσερα ευρώ και τέσσερα...
 

recursive Directorystructures and what to do with this filelist

We start with a few DIMs for needed Variables
B4X:
sub Globals
    Dim ffiles,ffolders As List
    Dim root As String
End Sub
and a main sub from this tutorial
B4X:
Sub ReadDir(folder As String...
 
Last edited:

Admob Mediation With Facebook

Hello,

This is the first time I am preparing a tutorial for this great community so please excuse me for any mistakes or weak explanations. Methods of some of the implementation may not be %100...
 
Top