Tutorials & Examples

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

[B4X] Documentation Booklets

The B4X documentation booklets are available in PDF format, Download Link.
All files are included in the zip file in the link above, pdf booklets and all the source code.

You can also...
 
Last edited:

[B4X] Features that Erel recommends to avoid

Many things have changed in B4X and also in the underlying platforms. I will try to list here all kinds of (old) features that have better alternatives.
B4X is backward compatible so these...
 
Last edited:

[B4X] "Code Smells" - common mistakes and other tips

"Code smells" are common patterns that can indicate that there is a problem in the code. A problem doesn't mean that the code doesn't work, it might be that it will be difficult to maintain it or...
 
Last edited:

B4A Book Now Covers Version 11.20

cover-295.jpg


I am happy to announce that both the paperback and electronic versions of the B4A tutorial and reference book “B4A Rapid Android App Development using BASIC” by Wyken Seagrave have...
 

[B4X] Regular expressions (RegEx) tutorial

Regular expressions are very powerful and make complicate parsing challenges much easier.
This short tutorial will describe the usage of regular expressions in Basic4android.
If you are not...
 
Last edited:

MQTT Topic best practice

B4Xgoodies_from_walt61 Online

Well,

As JamesGreaves requested,
"So do you not think it would be of value to have even something like @walt61 has created but online?"...
 
Last edited:

JPCT-AE Polyline Example

Polyline in JPCT-AE is unable for using by standart methods. But, by Ricardossy1, in his post: Ricardossy1 post, was described way for solving problem.
I was needed for Polylines in my...
 

Attachments

  • JPCT-AE (alhowiriny).jar
    79.4 KB · Views: 116
  • JPCT-AE (alhowiriny).xml
    414.4 KB · Views: 116
  • jpct_ae.jar
    380.4 KB · Views: 108
Last edited:

💡 Part 2 Examples - Creating long lists using xCustomListView with Lazy Loading - Newer developers

Hello All,
If you're not experienced with using xCustomListView (xCLV) with Lazy Loading (LL) when it comes to loading long lists of data, then I strongly suggest that you read the following post...
 
Last edited:

[B4XPages] [BitmapCreator] Cross platform Falling Sand game

Attachments

  • B4XFallingSand.zip
    204.4 KB · Views: 56

Read And Write NFC Tags !

(NFCRW has been Updated !)
In this project You can scan and write your Ndef or NFC tags Very simply,
(This project is for B4XPages)

The Principal codes ...
 

Attachments

  • ProjectNFC.zip
    14.9 KB · Views: 47
Last edited:

NFC - Reading and Writing

NFC v2.00 adds support for low level access to the NFC features. This allows reading and writing from NFC tags.

The NFC library provides three features:
- Reading Ndef tags based intent filters...
 

Attachments

  • AdvancedNFC.zip
    8.9 KB · Views: 2,956
  • Project.zip
    15.4 KB · Views: 50
Last edited:

[B4A] [Class] [Calendar] Class wmCalendar - Android calendar manipulation based on DonManfred's explorations

This is a calendar manipulation class based on @DonManfred 's explorations which you can find at...
 

Attachments

  • wmCalendarDemo.zip
    21.9 KB · Views: 79
Last edited:

Offline Continuous Speech Recognition

This is a very old project which is unlikely to function correctly on newer versions of Android. The link to the project should still be active and if you want to use it for reference to...
 

Attachments

  • copyright.txt
    1.5 KB · Views: 1,544
  • Library.zip
    403.1 KB · Views: 487
Last edited:

Implementing Launcher Icons using MipMap

The Launcher icon always shows as 48x48 dip, but when translated into pixels on screens with different resolutions, this can become 48, 72, 96, 144 or even 192 pixels square. You should ideally...
 

DJI virtual stick-tutorial, waypoint-mission for DJI Mini- and Air-series

After the release of the new grandiose DJI library and the preliminary work of freedom2000 and JordiCP in this thread...
 
Last edited:

[B4X] MQTT Chat Room

Attachments

  • Chat_B4i.zip
    6.1 KB · Views: 1,742
  • Chat_B4J.zip
    3.8 KB · Views: 2,800
  • Chat_B4A.zip
    11.3 KB · Views: 1,638
Last edited:

B4A UCanAccess Demo (works under B4J - see notes)

This demo is a slight modification of @klaus's B4XPages SQLiteLight2 demo...
 

Attachments

  • B4XPagesUCanAccessLight2.2020.08.25.01a.zip
    146 KB · Views: 520
Last edited:

[UI] [B4A] Online Course App UI Example + Source Code

Attachments

  • Online Course.zip
    273.5 KB · Views: 599

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

How to write a tasker plugin

Edge Case use for B4XPages: Changing Orientation for Many Pages

This is for advanced users only. Please see Erel's important cautions about using this approach below.

This post and examples demonstrate how to extend B4XPages to allow orientation...
 

Attachments

  • ezgif.com-gif-maker.png
    ezgif.com-gif-maker.png
    244.4 KB · Views: 344
  • b4xpages_orientation_example.zip
    203.2 KB · Views: 287
Last edited:

Version safe APK installation

As explained in this tutorial all store apps will soon be forced to target the latest SDK.

This means that we can no longer rely on the OS backwards compatibility features and need to...
 

Attachments

  • InstallAPK.zip
    131.5 KB · Views: 2,524
Last edited:
Top