Tutorials & Examples

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

Sharing files from your app with File Provider

Attachments

  • FilePicker.zip
    31.6 KB · Views: 2,843
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,631
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,146
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:

[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,084
Last edited:

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

[B4X] [Visual Designer] Spreading Controls

Question: How can I build a layout with X controls spread horizontally or vertically?

Answer: You can use the designer script for this. As the designer script engine (currently) doesn't support...
 

Attachments

  • 1.zip
    9.5 KB · Views: 997

Signature Capture Tutorial

Several developers were interested in adding support for signature capturing in their Android application.
The attached code module makes it easy to capture the signature and save it to a file...
 

Attachments

  • SignatureCapture.zip
    6.4 KB · Views: 4,392

Using a Git Repository (Version Control) for Beginners

git logo.png


What is Version Control?

Version control software keeps track of every modification to the code in a special kind of database. If a mistake is made, developers can turn back...
 
Last edited:

LockBox3 (Delphi) AES encryption exchange with B4A/B4J

Part 1: The key

This is just a write up of my findings regarding the exchange of encrypted data between B4A/B4J and LockBox3 (Delphi). This write up focuses just on LockBox3's implementation of...
 

Google Maps with FusedLocationProvider

Google Maps uses the GPS as its location provider. It will not show the current location if GPS is disabled.
It is possible to switch to a custom location provider.

For example, here is me...
 

Attachments

  • GoogleMapsWithFusedLocationProvider.zip
    10.4 KB · Views: 1,532

AMD Ryzen processor & Android emulator AVD

If you have modern processor from AMD (Ryzen) - x86-variants of AVD cannot work by default.
Android emulator now requires the processors with a virtualization only.

By default Intel processors...
 
Last edited:

Facebook login no event raised fix

Hi,

If your Facebook and firebase configurations are all ok but the auth event is not raising or if you are getting An account already exists with the same email address but different...
 
Last edited:

[B4X] - Google sheets and localizator

Hi everyone,

there is a new way to create the localizator class csv file and it is as easy now as it could never be in the past. Just watch the following video:

(23-6-2019)

In order...
 
Last edited:
Top