Tutorials & Examples

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

Athom Pre-Flashed TASMOTA Infrared Remote Controller with B4X (Home Automation)

[Advanced] Using a custom view written with Kotlin

SS-2019-03-25_12.35.54.png


Using Kotlin libraries is similar to using Java libraries. The only difference is that we need to add references to two...
 

Attachments

  • CameraVideoButton.zip
    8.3 KB · Views: 634
Last edited:

[B4X] Supabase Storage - Download file with Progress


This is a very simple tutorial on how to download a file and show the progress in a...
 

Attachments

  • Supabase Storage Progress Example.zip
    11.9 KB · Views: 162

One App - Two Activities (or more) - Two launcher icons

For my latest wear app i needed two different launcher icons, each one starting one different activity of the same app. It's really easy to accomplish, it only needs to edit the manifest file...
 

[B4X] xCLV - lazy loading with text input

The attached B4J example demonstrates how to implement lazy loading with editable items.

java_nAZX0TSYJE.png


There are several interesting points...
 

Attachments

  • LazyLoadingWithTextInput.zip
    6 KB · Views: 784
Last edited:

Transfer files across memory boundary

Hi all,

This is a simple example of moving files across the internal/external memory boundary.
EG Transferring a CSV file from an external location to an internal folder to load a database in the...
 

Attachments

  • XFer.zip
    13 KB · Views: 356

GPT & Search application (to sell)

Hello everyone, it's been a while since I posted here.
I had developed a conversation and research application in artificial intelligence, before publishing I offered two types of sales to see if...
 
Last edited:

[B4X] AS CardSlider - Text animation


AS CardSlider Text animation.gif


Code
B4X:
Private Sub B4XPage_Created (Root1 As B4XView)
    Root = Root1...
 

Attachments

  • AS CardSlider Text Animation Example.zip
    11.5 KB · Views: 156
Last edited:

DJI app java object to start video recording

This starts recording video with your dji app

B4X:
'put this in process globals

   Dim AircraftInstance As JavaObject
  

    Dim CameraInstance As JavaObject


'Put this in AfterAircraftConnected...
 

[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,650

Test web back ends in your computer without fiddler and see what your app will post

 

[B4X] Sharing modules and classes

In newer versions of B4A, B4J and B4i it is simple to share code modules between projects, including projects targeting other platforms.

More information here...
 
Last edited:

Fill or Fit image to ImageView

Hi,

Here is how you can set the scale mode of an ImageView like CSS background-size property.

B4X:
'scale = cover,contain,fill
Public Sub SetImageView(iv As ImageView,bmp As Bitmap, scale As...
 

B4A Rapid book updated to B4A 10.6

B4A-324x400.jpg

I am happy to announce that the both the paperback and electronic versions of the B4A tutorial and reference book “B4A Rapid Android App...
 

Debugging with Firebase / Android GPU Inspector

Hello,

(this is not a full tutorial, just a overview of this 2 tools)

I wrote my first animation in a app and with no idea what im doing i was running poorly...

While debugging i struggled with...
 

MidiSystem Example PlayOnly USB

This example allows playing a midi file to an external USB device which you can select. It also allows delaying the messages send to the usb device so you can hear them at the same time as the...
 

Attachments

  • PlayOnlyUSB.zip
    16 KB · Views: 569
Last edited:

MidiSystem Drum sequencer

This example allows creation of loops on multiple tracks as they are played. Just like a drum sequencer. It demonstrates creating a midi sequence and tracks, and adding events and messages...
 

Attachments

  • DrumSequencer.zip
    30.5 KB · Views: 550

Dropbox SDK V2 - Uploading big files to Dropbox

This Tutorial will show you all needed Code to do Uploads to Dropbox.

Requirement for this tutorial: you need to have your App Dropbox-ready (see Tutorial I - Authentification).

Asuming...
 
Last edited:

MidiSystem Recording example

This example loads a midi file and records an extra track from either the on board keyboard, or an external USB midi device.

Please be careful when saving files as the recorded track will be...
 

Attachments

  • Piano&FullMidiLib.zip
    19.4 KB · Views: 572
Last edited:

Facebook login no event raised fix

Hi,

If your Facebook and firebase configurations are all ok but the auth event is not raising or if you are getting An account already exists with the same email address but different...
 
Last edited:
Top