Tutorials & Examples

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

Share a PDF with a specific WhatsApp number.

Hi everyone, i've been working with B4A since 2016 or maybe 2015 and today, after a request from a client. I needed to send a PDF to a specific number in whats app.

After two days, i finally...
 

BBCodeView Example (Non B4XPages Version)

The standard example just converted. Don't know If someone did it before (so far). Might be happy to remove this post.

1688240567163.png
 

Attachments

  • BCTextExampleNonPages.zip
    22.9 KB · Views: 163

TessBaseAPI ocr

hello, a small library of TessBaseAPI "tesseract4android-2.1.0" Ocr, you need to download tesseract4android-2.1.0.aar and junit-4.4.jar as Depends, for the tessdata languages...
 

Attachments

  • tess4.1.zip
    24 KB · Views: 443

[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: 221

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: 478
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:
Screenshot_20170910-212445.jpg

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

Attachments

  • Screenshot_20170910-212445.jpg
    Screenshot_20170910-212445.jpg
    278.5 KB · Views: 655
  • Screenshot_20170910-212445.jpg
    Screenshot_20170910-212445.jpg
    278.5 KB · Views: 628
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.
v0BTloye7NooRlNQ2mttxAJNMxCj91k9VvdTs8NrvBMGG3gj2b.jpeg
ezgif.com-resize (3).gif

Guide
  1. Download...
 

Attachments

  • AS Settings with AS PlusMinus.zip
    178.3 KB · Views: 43
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.

68Gwy24byC6t25EmoUFMaYjmLsEYswKie0vfOyuZOTV6f7d8za.jpeg
ezgif.com-resize (3).gif

Guide
  1. Download...
 

Attachments

  • AS Settings with AS SegmentedTab Example.zip
    178.9 KB · Views: 35
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:

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

Sound Meter

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

live line chart #Johan Schoeman...
 

Attachments

  • Screenshot_20230422-130730.jpg
    Screenshot_20230422-130730.jpg
    5.7 KB · Views: 276
  • sound1.zip
    34.3 KB · Views: 203
  • Screen_Recording_20230422_130822_1.gif
    Screen_Recording_20230422_130822_1.gif
    88.5 KB · Views: 230

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

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: 1,677
  • scrtemp.png
    scrtemp.png
    77.6 KB · Views: 4,212
  • ULVExample.zip
    12.2 KB · Views: 2,845

[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.
(18) mage.png
...
 

Attachments

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

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
    Screenshot_20210713-125404.png
    173.5 KB · Views: 575
  • Screenshot_20210713-125410.png
    Screenshot_20210713-125410.png
    17.5 KB · Views: 499
  • pdfHelpExample.zip
    263.6 KB · Views: 404

Backup/Restore SQLite Database

Hello
This is an example of how to back up and restore the SQL Lite database as the database produces three files with three extensions
with the following extensions 'db.db'...
 

Attachments

  • backup.restore.sqlite.zip
    17.7 KB · Views: 436

my share creation simple carousell

For the First I said Thank Too Much For Great Mr.Errel That my Inspirator, StarDust and All Of member that i can't say person by person, i wish yours appologize of my bad english, this my first...
 
Last edited:

Send and Recive SMS from PC using AsyncStreams in Wifi e VB.Net

android 12
 

Attachments

  • SMSWifi12.zip
    114.4 KB · Views: 248
  • wifiSMS.zip
    118 KB · Views: 244

Check if the application is running on a Chromebook

If you want to check if the application is running on a Chromebook (for example to do some specific GUI reconfiguration to run in a resizable Window), you can use the following routine.
Hope it...
 
Top