Tutorials & Examples

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

Midi System Example - Play A Midi File.

Attachments

  • PlayOnly.zip
    10.1 KB · Views: 178
Last edited:

[B4X] Show image in IDE link - B4J created Program Starter

Good morning to all of you,

some times I find it easier to make notes on a paper with a pen. I am a visual person and I understand something better this way. At several times I move my notes to...
 

Attachments

  • ProgramStarter.zip
    969 bytes · Views: 209
Last edited:

[B4APages] App Base with Left menu [B4XDrawer] and menu bar options with image : functional example

Hello everyone, I'm sharing a basic example where I integrated several options [B4APages and] so that a new member can start developing their application.
I hope it is useful.

Hola a todos, les...
 

Attachments

  • B4APagesAppBase_v00.zip
    73 KB · Views: 289

EasyAR 3D Object Rendering

Hello everyone, it's been a while since I wrapped the EasyAR SDK Library which can be found here I haven't had much time but I decided to create a small example to learn how to render...
 

Attachments

  • OpenGL2_v1.8.zip
    37.7 KB · Views: 222
Last edited:

Google Maps

upload_2016-2-24_12-2-46.png



Installation instructions:

- Register your app in Google developer console: https://console.developers.google.com
You need to enable Google Maps Android API.
Then click on...
 

Attachments

  • GoogleMaps.zip
    19.4 KB · Views: 5,594
  • MapExample.zip
    14.4 KB · Views: 385
Last edited:

Handle the soft keyboard with the IME library

Android has very good support for custom input method editors (IMEs).
The downside for this powerful feature is that interacting with the soft keyboard can be sometimes quite complicated.

This...
 

Attachments

  • IME_Example.zip
    15 KB · Views: 357
Last edited:

AppCompat with ToolBar - minimal example

In most cases AppCompat is no longer needed and will only make things more complicated.
B4XPages example with dynamic menu...
 

Attachments

  • upload_2017-5-24_12-18-26.png
    upload_2017-5-24_12-18-26.png
    7.3 KB · Views: 4,470
  • AppCompatExample.zip
    9.9 KB · Views: 316
Last edited:

Dual Screen using MQTT

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

Attachments

  • MqttPrimaryScreen.zip
    11.3 KB · Views: 237
  • MqttSecondaryScreen.zip
    10.8 KB · Views: 214
  • MqttPrimaryScreenV2.zip
    18 KB · Views: 194
  • MqttSecondaryScreenV2.zip
    17.2 KB · Views: 186
Last edited:

Update APK

This is an example of updating app to newer version.
In real usage, the new apk should be downloaded from a server to File.DirInternal.

Note:
In this example, the apk file (version 1.01) which is...
 

Attachments

  • 1.zip
    215.5 KB · Views: 399
  • 2.zip
    40.3 KB · Views: 406
Last edited:

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: 230
  • UDPSocketSecondary.zip
    10.3 KB · Views: 237

[MinimaList] Player Scoreboard

B4A
B4J

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: 200
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,952

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.


chatclv.jpg


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

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: 348
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:
Top