Tutorials & Examples

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

💡 [B4X] [XUI] [B4XPages] B4A PreoptimizedCLV lazy loading from SQLite and CSV - Newer developers

Hello to you all,
Welcome to Sheldon Coopers and Amy Farrah Fowlers fun with flags ;)

Here is a simple example on using B4XPages with both an SQLite database and also a CSV file with multiple...
 
Last edited:

In App Purchases Setting Tutorial - New Google Play Console - Accurate as of 2020-09-26

Hey everyone,

This is a tutorial on how you can add In App Purchases to your Android App in the New Google Play Console.

1) Add GooglePlayBilling library in your project and the following code...
 
Last edited:

DownloadManager tutorial

Here i'll post one or two examples showing how to use the DownloadManager library.

DownloadManager simple example.
Here's what must be the most simple way to use DownloadManager...
 

Attachments

  • simple_example.zip
    8.6 KB · Views: 2,115
Last edited:

Important note about B4XPages projects

I know it is simple info for experts, but it is critical point for who want to start using B4XPages projects:- B4XPages project is for cross-platform development, that is mean when created; all...
 

[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

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

  • Project.zip
    15.4 KB · Views: 731
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: 472
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...
 

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: 613
  • b4xpages_orientation_example.zip
    203.2 KB · Views: 501
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,978

OSMDroid - MapView for B4A tutorial

Attachments

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

integrating huawei map kit into the B4A platform

the huawei map kit will hopefully be integrated into the B4A soon..

i have opened a topic here, and huawei teams will provide support...
 

[B4X] Sophisticated sorting with B4XComparatorSort

B4XCollections v1.13 includes a new sorting feature named B4XComparatorSort.
This feature allows sorting using a custom comparator class.
The comparator class is a class that you create and it...
 

Attachments

  • Project.zip
    15.5 KB · Views: 341
Last edited:

[B4x] AES Encryption (lessons learned & best practice)

Last weekend I migrated my XAMPP test environment (Apache/PHP/MySql). It came with PHP 7.x. Yesterday I wanted to test one of my Apps using AES and Mcrypt for it in PHP but it didn't work no more...
 

[B4X] Tip - ROBOCOPY error related to shared files folder

You download a project from the forum and when you run it, you get an error message similar to:

B4X:
B4A Version: 10.2
Java Version: 8
Parsing code.    (0.11s)
Building folders structure...
 

Data Safety Admob

Hello team,

If you recieved an email about submiting Data Safety form at Google Play Console and your apps using Admob, you can watch this video to guide you.

More infos you can find...
 

Create Custom Keyboard Layout for Coding

Sometimes it is really annoying to have keys we use so often to be lying in most inaccessible parts of keyboard.
And to make the matter worse they might also involve combination of shift etc...
 

Attachments

  • c0d3r.zip
    2.1 KB · Views: 337
Top