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:

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:

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

[B4XPages] [BitmapCreator] Cross platform Falling Sand game

Attachments

  • B4XFallingSand.zip
    204.4 KB · Views: 30

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: 17
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,929
  • Project.zip
    15.4 KB · Views: 21
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: 58
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,526
  • Library.zip
    403.1 KB · Views: 471
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,722
  • Chat_B4J.zip
    3.8 KB · Views: 2,773
  • Chat_B4A.zip
    11.3 KB · Views: 1,594
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: 505
Last edited:

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

Attachments

  • Online Course.zip
    273.5 KB · Views: 563

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: 325
  • b4xpages_orientation_example.zip
    203.2 KB · Views: 269
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,500
Last edited:

Add Charts With Google Charts Service

The attached project is a port of this example: [Server] Google Charts service to Basic4android.
A similar example with more charts is available here...
 

Attachments

  • GoogleCharts.zip
    8.1 KB · Views: 1,691

OSMDroid - MapView for B4A tutorial

Attachments

  • 01 - SimpleMap.zip
    5.8 KB · Views: 4,224
Last edited:

Play Games Services - Example and Class

Last year, I commissioned Biswajit to write a library for the new Google Play Games Services library. To manage the complexity of the code, I wrote a class called...
 

Attachments

  • Play Game Services Example.zip
    29.1 KB · Views: 67

Share/Show file(s) from internal

Here's a small example how to show/share file(s) from the internal storage (benefits: no permissions are needed)

What it does:

- creates a folder called "shared" (under File.DirInternal)
- this...
 

Attachments

  • ShareFromInternal.zip
    8.6 KB · Views: 122
Top