Tutorials & Examples

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

Print Made Easy

After understanding this approach, printing will be painless for you forever.

Requirements:
- Any pdf file generation tool, I used HtmlToPdf lib.
- Any base64 converting tool, I used...
 
Last edited:

Background location tracking



Simple example of a foreground service that keeps the process running in the background. The current location is shown in...
 

Attachments

  • MyLocation.zip
    9.3 KB · Views: 944
Last edited:

android.jar / targetSdkVersion / minSdkVersion

There are several versioned components that affect the compilation process and the runtime behavior of our apps.
The purpose of this tutorial is to explain the differences between them and help...
 
Last edited:

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

B4X Object Browser - new thread

Hi. Please place any new questions or comments about the B4X Browser here.
 

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.

 

Attachments

  • BCTextExampleNonPages.zip
    22.9 KB · Views: 163

Full Chat (NovaChat)

Download the Library for free here : Download
 

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

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

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: 536
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: 478
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: 192
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: 656
  • Screenshot_20170910-212445.jpg
    278.5 KB · Views: 629
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: 44
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: 36
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: 860

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
    5.7 KB · Views: 276
  • sound1.zip
    34.3 KB · Views: 203
  • Screen_Recording_20230422_130822_1.gif
    88.5 KB · Views: 230
Cookies are required to use this site. You must accept them to continue using the site. Learn more…