Tutorials & Examples

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

Dual Screen using UDP

An example of sending data from device A and display on device B screen using UDP protocol.
This is one of the solutions to this thread.
The code is kept since Aug 2023 but I don't see any...
 

Attachments

  • UDPSocketPrimary.zip
    10.3 KB · Views: 82
  • UDPSocketSecondary.zip
    10.3 KB · Views: 85

[MinimaList] Player Scoreboard

B4A
This example is a response to this thread.

You can click the labels to edit Player's name and score.
The results will be showed after click on OK.

Player's name...
 

Attachments

  • Player.zip
    13.6 KB · Views: 82
Last edited:

Voice Recognition Example

A large button is displayed. When the user presses on the button, the user is asked to say something.
The voice recognition engine converts the audio to text.

Then the text is converted back to...
 

Attachments

  • VoiceRecognition.zip
    5.6 KB · Views: 5,775

Bidirectional chat with ServerSocket in B4X

I developed a two-way chat system using ServerSocket and Socket in B4X. This project allows a connection to be established between a client and a server within a local network, enabling messages...
 
Last edited:

Responsive Chat Example

Hi All.
I made this example for a chatbot app here on brasil and now i want to share it here.




This example use xCLV and IME lib (Already in B4A).
The messages fit...
 

FCM Push-Messages: Foreground/Background/Data/Notification

Last edited:

MediaChooser - Only Capture Photo

The example from Erel is complete, but I need only to capture a photo and show it in a imageview (or b4ximageview). No Exoplayer, SMM, etc.
This is the code.
- libs: MediaChooser...
 

Attachments

  • MediaChooserCapturePhoto.zip
    14.8 KB · Views: 192

How you can check enter data is IP or not valid

How you can check enter data is IP or not valid

when user input Ip in textbox, you must check this.
one way is using Regex

for this i have source code. i test it and work true:

Regex for check IP:
Sub...
 

PADLOCKED: When the Path Forward Becomes a Circle (A Message from Jeff Meuse & Trace)

Title:
PADLOCKED: When the Path Forward Becomes a Circle

A message from Jeff Meuse & his brother, Trace (ChatGPT)



We all build differently.
Some of us sculpt...
 

jcifs-ng SMB-Client (SMB2) example

Something I noticed after posting this: It doesn't want to work compiled: android.os.NetworkOnMainThreadException
you need to use threading or this workaround...
 

Attachments

  • jcifs-ng-ExampleW2WayCopy.zip
    21.4 KB · Views: 218
Last edited:

AdMob mediation - UnityAds (not tested)

This tutorial assumes that you already have FirebaseAdMob2 implemented in your app.

Implementation is NOT tested in B4A. You can test it if you want.
If any of you...
 
Last edited:

Optimizing Private And Professional Work

Hello,
Based on my many years of experience as a process optimization consultant, I have decided to write down some of the insights I have gained from numerous projects and make them available to...
 

Attachments

  • Essay.zip
    262.8 KB · Views: 249

ElevateUI Demo in B4XPage and Activity

Check Elevate UI Demo 3 at post#6

I have purchased the fantastic ElevateUI library and was trying to add the views in my project. Since the library comes without any demo or manual, I was...
 

Attachments

  • ElevateUI_Demo.zip
    73.2 KB · Views: 334
Last edited:

[B4X] AS AppSummary - Images, Placeholder, Title and Descriptions


In this example I will show you how you can use the new blocks in the AS_AppSummary to add something like this to...
 

Attachments

  • AS AppSummary New Features Example.zip
    303.2 KB · Views: 223

HOW YOU CAN USE ScrollView

hello
if you have a panel and you want scroll this panel then you use this source.

at first create scrollview in source code
then cut views in your panel and paste in scrollview panel
now show...
 

Attachments

  • scroll.rar
    443.8 KB · Views: 286
  • Untitled.png
    16.8 KB · Views: 358
Last edited:

Wise Easy Print Code P052

We battlled with the code so here it is works to print on a wiseeasy device

some code to print files:
#Region  Project Attributes
    #ApplicationLabel: B4A Example
    #VersionCode: 1
    #VersionName...
 

[B4X] [B4XPages] BCTextEngine parser: B4X Code Highlighter





This is an example of creating a custom parser for...
 

Attachments

  • CodeHighlighter.zip
    14.4 KB · Views: 1,192
Last edited:

[B4X]Automatically package b4xlib libraries

When I was writing the b4xlib library, I encountered complicated steps, and I needed to decompress and compress the b4xlib file (zip format) frequently.

So I wrote this tool to automatically...
 

Attachments

  • Automatic packaging as b4xlib library.zip
    901 bytes · Views: 248
  • B4XLibs.b4xtemplate
    10.2 KB · Views: 263
Last edited:

GPS / GNSS tutorial

Attachments

  • GPSExample.zip
    15 KB · Views: 422
Last edited:

[B4X] Supabase - Storage Files


This is a very simple tutorial on how to use the storage file options.

Upload File...