Tutorials & Examples

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

Get resolution of video from file

MediaMetadataRetriever:
    Dim metaRetriver As JavaObject
    metaRetriver.InitializeNewInstance("android.media.MediaMetadataRetriever", Null)
    metaRetriver.RunMethod("setDataSource"...
 
Last edited:

[B4X] Using/running B4A and/or B4J on 64 bit Linux Mint 20.2 Cinnamon with 64 bit Wine

WebViewExtras Examples for beginners

I noticed a lot of beginners are confused about how to use the WebViewExtras library so I made a detailed example.
If you find it useful, kindly consider buying me a coffee.

Code works on Android...
 

Attachments

  • WebViewExtras.zip
    12.5 KB · Views: 956
  • WebviewExtras2Example.zip
    7 KB · Views: 205
Last edited:

Apprendre à utiliser les Vues B4A - Partie 2 (Learn to use B4A views - Part 2)

Learn to use Design Views in B4A (Learn to use Design Views in B4A)


 

Full private chat and multi-chat (similar to Whatsapp)

NovaChat is a private chat class module (Multi-User in next version) that has almost all the functionality of instant messaging.

Capture.PNG
Capture 1.PNG
Capture 3.PNG

NovaChat uses the phone as a...
 

SQLite Full Text Search on a Large Database and Display on an xClv

The primary objective of this cross-platform B4XPages SQLite FTS example is to show the syntax used for Full Text Search queries in SQLite. The database consists of close to 400000 records. It is...
 

Attachments

  • SQLiteFullTextSearchForForum.zip
    20.2 KB · Views: 740

Read QR code from file

Hello team,

If you want to scan QR code from a file (Bitmap or pdf) you can try this code:
You need PDFium and Barcode Reader

B4X:
'Code module
'Subs in this code module will be...
 

[UI] [B4A] Camping App UI Example + Source Code

Hello Community!
This is the first UI Example by XTools Group and more examples are on the way :)
In this example we've used CustomListView & XUI Views Librarys and implement a self-made Bottom...
 

Attachments

  • Camping App.zip
    365.1 KB · Views: 1,168

Publish New App to Google Play

1. Click on button "Create app".
00.png


2. Enter your App name. Select App or Game.
01.png


3. Scroll down. Check all the declarations. Click on button "Create app".
02.png


4...
 
Last edited:

[B4X] [B4XPages] Menu badges

1628579674728.png


This is a B4i + B4A example. It adds a dynamic badge to the menu icon. It also shows how to update menu items at runtime.

Don't miss:
1. B4A - theme settings in manifest editor.
2...
 

Attachments

  • Project.zip
    16.6 KB · Views: 1,639

Calculation of Distance in Km between two points on MapFragment

Hi I share a simple solution to calculate the distance in km between two points on MapFragment. I hope it will be of help to anyone who works with the GoogleMaps v2.50 library.

The coordinates...
 

[B4X] WebView + CKEditor (rich text editor)

1628407653890.png


This is a cross platform example that adds CKEditor rich text editor using WebView: https://ckeditor.com/ckeditor-5/
Make sure to read CKEditor licensing and pricing...
 
Last edited:

B4A-Créer un Slide Menu avec un Panel (Create a Slide Menu with a Panel)

Créer un Slide Menu parfait et rapide seulement avec un Panel .
(Create a perfect and fast Slide Menu only with a Panel).


Nous allons créer un Chat dans notre prochaine vidéo...
 

Core Programming - Chain of Several Programmer

Core Programming Is a group chain of Programmer working on the development of new Features.

Here is a channel to teach newbies how to get started working with B4A and it is a channel to...
 

ExoPlayer - full screen feature

1627205322656.png



1627205353669.png


This example demonstrates how you can add a full screen button to a video. Clicking on the button, starts a new landscape activity and it then uses the native...
 

Attachments

  • Project.zip
    16.3 KB · Views: 148
Last edited:

[B4X] AS CalendarAdvanced - Expand with xCLV

Expand with xCLV 001.gif

This is a sample project to demonstrate how to expand or collapse the calendar and at the same time adjust a listview below it...
 

Attachments

  • Expand With xCLV.zip
    11.5 KB · Views: 457
Last edited:

Flow chart to help choose folder

This flow chart will help you choose the folder in all kinds of different cases:

1626940622208.png


There were reasons to use other folders in the past. Those reasons are no longer relevant, mainly...
 
Last edited:

💡 [B4X] Using JSON generator, 5 simple examples - Newer developers

Hello all,
Well here we are with a simple example on how to use the JSON generator, this applies to B4A, B4J and also B4i.

I've created 5 different examples using B4XPages for new B4X developers...
 

Attachments

  • JSON Generator.zip
    14.9 KB · Views: 505
Last edited:

[B4X] TextEditor - Save and load external files

This is a B4i and B4A example, which demonstrates various external files related tasks.

1626784777442.png
1626784790557.png


The behavior is not exactly the same as the platforms capabilities and behavior...
 

Attachments

  • TextEditor.zip
    184.2 KB · Views: 916
Last edited:

Convert collections to json and vice versa

The JSON libraries, which are internal libraries, were updated. The new version is 1.20.

There is a new JSON type which is used to convert maps or lists to json strings and vice versa, using the...
 
Last edited:
Top