Tutorials & Examples

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

✅ 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:

[B4X] AS TextFieldAdvanced Text Validation/Required Fields Example

This is a exmaple project to show the required field feature in the AS TextFieldAdvanced...
 

Attachments

  • AS TextFieldAdvanced Text Validation Example.zip
    72.9 KB · Views: 691

Running B4A Apps in Split Screen Mode

Tutorial – Running B4A Apps in Split Screen Mode

I’m learning this as I go along so there may be errors of fact. If so then post a correction below and I will modify this tutorial...
 

Attachments

  • SplitScreenTest_1.0.zip
    11.7 KB · Views: 848
Last edited:

Markdown to HTML conversion

I needed to parse markdown code as HTML, and since you guys have given me so much code I felt obligated to share it...
 

Attachments

  • markdown.zip
    69.5 KB · Views: 759
Last edited:

[B4X] BBCodeView Anchors Example



A small, cross platform, example of using the new anchors feature of BBCodeView.

It reads a CSV file with information about US politicians. The data is used to...
 

Attachments

  • Anchors2.zip
    449.9 KB · Views: 620
Last edited:

Expand the Eddittext row for row like WhatsApp

Hello, after 3 days work on it, it is finished.

The goal was to expand the Eddittextbox automatically like WhatsApp here:


And i want to share my Code with you, to save time for...
 

Attachments

  • Screenshot_20170910-212445.jpg
    278.5 KB · Views: 961
  • Screenshot_20170910-212445.jpg
    278.5 KB · Views: 977
Last edited:

[B4X] AS Settings with PlusMinus

This is an extension for the AS_Settings library, if it activates this extension, then you can select settings via a new type.

Guide
  1. Download...
 

Attachments

  • AS Settings with AS PlusMinus.zip
    178.3 KB · Views: 433
Last edited:

[B4X] AS Settings with SegmentedTab

This is an extension for the AS_Settings library, if it activates this extension, then you can select settings via a new type.


Guide
  1. Download...
 

Attachments

  • AS Settings with AS SegmentedTab Example.zip
    178.9 KB · Views: 436
Last edited:

RegEx.Matcher2 and getting first and last words of String

This example not only retrieves the first and last word of a String, but also sets a Label with the first letters of both the first and last words.
I use it to populate a CustomListView with...
 
Last edited:

Protect your application against copy and changes

This method uses the F5Steg and PackageUtils libraries from ProBundle.

There's a demo available in the Play Store...
 

Attachments

  • Challenge.zip
    71.3 KB · Views: 1,193

Get Path of File/ Folder

On Telegram there is a group named 'B4A', I found the source code there on that group.
Hope it may help others.

I wanted to get the path of Folder when a file is selected from...
 

Attachments

  • Gallery Chooser.zip
    10.1 KB · Views: 614

Sound Meter

Hello.
the project was prepared using only the libraries in the forum.

live line chart #Johan Schoeman...
 

Attachments

  • Screenshot_20230422-130730.jpg
    5.7 KB · Views: 679
  • sound1.zip
    34.3 KB · Views: 576
  • Screen_Recording_20230422_130822_1.gif
    88.5 KB · Views: 670

Resizing Text Control Custom View - Set text control size based on text - Non Latin Text fix

There are many occasions when you need to have multiple labels which all size themselves to their contents and also align with each other with no space.

The solution to this is to use...
 

Attachments

  • clvwithresizingtextupdated.zip
    369.8 KB · Views: 525

UltimateListView Example

This is an ULV example I wanted to share for a long time, since I thought it was *very* cool.

It demonstrates:
- Sticky headers
- Swipe gestures
- Animations (appearing out)
- Selected State...
 

Attachments

  • ULVExample.apk
    183.9 KB · Views: 2,012
  • scrtemp.png
    77.6 KB · Views: 4,646
  • ULVExample.zip
    12.2 KB · Views: 3,194

Tutorial of connecting Android to MS SQL Server using jRDC2

Hi

Here is a tutorial that shows the steps of how to make an Android connection to MS SQL Server using jRDC2.

Download tutorial here:
Attached the Mobile...
 

Attachments

  • jRDC SQL Server.zip
    5.2 KB · Views: 2,345
  • Example B4A.zip
    10.4 KB · Views: 2,506
  • Script TestSQLServer.txt
    857 bytes · Views: 2,190

[B4X] AS_TabMenuAdvanced Custom Middle Button

In this example we add a MiddleButton that is larger than the internal one and is outside the TabMenu.
...
 

Attachments

  • AS TabMenuAdvanced Example.zip
    281.1 KB · Views: 953

B4A-Bridge over wifi without a local network

Starting from B4A v5.0, B4A-Bridge over Bluetooth is no longer available. You can use B4A-Bridge over wifi or USB debug mode to connect the IDE to a device.

By creating a mobile hotspot you can...
 

Please test reading your NFC credit card.....

Please test scanning of your NFC enabled credit card using the APK in the download link below. Please ensure that you have enabled NFC on your cell/device before you do a scan - the...
 
Last edited:

Help Management for Application

Hello hope your'e well.
Apps are getting more and more complicate and to work with the user needs a manual. This examples shows how you can add an help dialog to your B4XPages Project. The help...
 

Attachments

  • Screenshot_20210713-125404.png
    173.5 KB · Views: 904
  • Screenshot_20210713-125410.png
    17.5 KB · Views: 803
  • pdfHelpExample.zip
    263.6 KB · Views: 714

[B4X] MQTT Chat Room

Attachments

  • Chat_B4i.zip
    6.1 KB · Views: 2,587
  • Chat_B4J.zip
    3.8 KB · Views: 3,987
  • Chat_B4A.zip
    11.3 KB · Views: 3,324
Last edited:
Cookies are required to use this site. You must accept them to continue using the site. Learn more…