Tutorials & Examples

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

Expandable list based on CustomListView

A cross platform version is available here: https://www.b4x.com/android/forum/t...g-or-collapsing-xcustomlistview-items.106148/

expander.gif



This...
 
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: 2,495
Last edited:

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

[B4X] B4XCache - simple and useful cache collection

B4XCache is a new collection added in B4XCollections v1.10.
It is key / value store collection, similar to Map.
When the cache reaches the set maximum size, the least recent used items are removed...
 
Last edited:

[B4X] CreateB4XFont

This is an example in response to this post and extension of the example posted here.

B4X:
Private Sub Button1_Click
    #If B4i
    Label1.Font = CreateB4XFont("D3-Biscuitism-Bold"...
 

Attachments

  • CreateB4XFont.zip
    119 KB · Views: 105
Last edited:

[B4X] Localizator B4XPages

A B4X project example to use Localizator in B4XPages
The device locale is selected for B4XCombobox by default.
This is answer to this question...
 

Attachments

  • LocalizatorB4XPages.zip
    20.9 KB · Views: 119

Play Games Services - Example and Class

Last year, I commissioned Biswajit to write a library for the new Google Play Games Services library. To manage the complexity of the code, I wrote a class called...
 

Attachments

  • Play Game Services Example.zip
    29.1 KB · Views: 567

Tips or Tricks for using Android Emulator

I want to share a few tricks when using the Android Virtual Device or Emulator.

1. Increase font and icon size
Go to Settings (gear icons) from drawer/desktop/slide down menu and choose...
 

Attachments

  • 1703145831287.png
    1703145831287.png
    313.3 KB · Views: 2,747
Last edited:

[B4XPages] Admob Example

Check this other excellent example from @Jack Cole.

To help the new members to make money with B4A, I tried to compile all the relevant Admob code (except mediation) of the...
 

Attachments

  • b4xpages_admob_example7.zip
    59.7 KB · Views: 198
Last edited:

MidiSystem Midi Monitor

This example is deprecated, see Midi Monitor2

This is the last example for now, it provides a midi monitor for messages based on the midi channel that the messages are played on.

It...
 
Last edited:

Midi Monitor2

This is a rewrite of the original midi monitor example as a CustomView in a B4xPages project. It eliminates the need for threading and the AcceleratedSurface libraries.

1752691417905.png
...
 

Attachments

  • MidiMonitor2.zip
    12.4 KB · Views: 125
Last edited:

Midi System Example - Play A Midi File.

Attachments

  • PlayOnly.zip
    10.1 KB · Views: 116
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: 133
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: 200

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: 145
Last edited:

Google Maps

Attachments

  • GoogleMaps.zip
    19.4 KB · Views: 5,418
  • MapExample.zip
    14.4 KB · Views: 249
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: 235
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,363
  • AppCompatExample.zip
    9.9 KB · Views: 193
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

  • MqttSecondaryScreen.zip
    10.8 KB · Views: 142
  • MqttPrimaryScreen.zip
    11.3 KB · Views: 153
  • MqttPrimaryScreenV2.zip
    18 KB · Views: 121
  • MqttSecondaryScreenV2.zip
    17.2 KB · Views: 119
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: 322
  • 2.zip
    40.3 KB · Views: 306
Last edited:
Top