Tutorials & Examples

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

GitLab: Syntax highlighting for B4X files

When using an online repository such as GitLab, you can add a file named ".gitattributes" with the following content:

B4X:
*.bas gitlab-language=vb
*.b4j gitlab-language=vb
*.b4a gitlab-language=vb...
 
Last edited:

A trick for a badly closed application from a KILL TASK

I found it hard to find a solution to a problem that I think someone else could have
if you leave a service running with:

B4X:
#StartCommandReturnValue: android.app.Service.START_STICKY
or
B4X:
...
 

Dialogs library 2017 - Custom dialogs and async methods

Dialogs v4 is an extension to @agraham original dialogs library. It requires B4A v7+.

SS-2017-06-01_16.00.52.png


The main changes are...
 

Attachments

  • DialogsExample.zip
    9.8 KB · Views: 4,651
Last edited:

Getting Started With a Homescreen Launcher

Hey guys!

This forum and Basic4Android has helped my career prospects greatly, so I thought I'd try and do something useful...

As some of you know, I've been working on an Android Launcher or...
 

MJPEG / CCTV Server

Attachments

  • MJPEG_CCTV.zip
    12.6 KB · Views: 3,529
Last edited:

How I manage multi language in my Android App

Hi everyone !

I would like to share my own way to manage multi languages for my Android App.
I'm sure there are more than one method to do it, I just want to share mine.

This functionnality is...
 

[B4x]Send Firebase-Message via php

UPDATE

Please ensure you use https:// to call the Google fcm api. "Out of the sudden" one of my apps didn't work anymore :rolleyes:

B4X:
$ch = curl_init();
        curl_setopt(...
 
Last edited:

Supporting multiple screens - tips and best practices

This is an old tutorial. I recommend to instead watch the visual designer video tutorial: https://www.b4x.com/etp.html

There are several features in B4A that help you target Android...
 
Last edited:

[B4X] BitmapCreator Performance

Attachments

  • B4A_BC_Performance.zip
    8.8 KB · Views: 757
  • B4i_BC_Performance.zip
    1.8 KB · Views: 668
  • B4J_BC_Performance.zip
    1.6 KB · Views: 610
Last edited:

Corso B4A Intermedio - Creazione di due App, un Timer per gli Scacchi e una Calcolatrice

1797502_4b7b_3.jpg

Ciao a tutti, ho creato un nuovo corso rivolto a chi già si muove un po con B4A e non è proprio alle prime armi. Il...
 
Last edited:

Using CustomBuildAction to deploy to multiple devices at once

This tutorial will demonstrate how you can use CustomBuildAction attribute to deploy to multiple connected devices at once.

The "additional" devices should be connected in USB debug mode. This...
 
Last edited:

Android messages - Cool new feature for SMSing from everywhere

Hi everyone,

I do not know if this is a suitable tutorial for this forum but I just found out and I am absolutely thrilled with it. There is a way to send SMSs from your mobile phone even from...
 
Last edited:

Creating a simple Kotlin wrapper library

The purpose of this tutorial is to show a way of compiling Kotlin into your developed library as a “fat” JAR (a JAR file containing all necessary dependencies and classes bundled in).

Compared to...
 
Last edited:

Wrapping a small and easy 3rd party library with java - Part II

Started here i released a tutorial about wrapping a library for b4a.
Basically this is the same here but i´ve caputed the hole process :D

Have fun (or be bored watching it). Hope it helps a...
 

GUI SDK Manager for newer versions of Android tools

Attachments

  • B4A-SdkManager-Source.zip
    63.3 KB · Views: 5,593
Last edited:

[B4X] [BitmapCreator] Maximizing Performance with BC

1. This tutorial is about BitmapCreator v3.5+.
2. It is relevant for B4A, B4i and B4J.
3. The features discussed are only needed when making hundreds or more drawings per second.

Drawing...
 
Last edited:

Change color of Android ProgressBar

Automatic Foreground Mode

This is a new feature added in B4A v8.0.

Starting from Android 8.0, services cannot be simply started while the app is in the background or not running at all. Background means that there isn't...
 
Last edited:

[B4X] [XUI] Msgbox

XUI library v1.4 adds support for asynchronous msgbox dialogs.

The API is simple:

SS-2017-10-19_15.27.39.png


B4X:
xui.MsgboxAsync("Hello", "World")...
 

B4A connected to Memu

B4A Bridge connect to MEMU? Yes, you can.
Follow all instruction from this video:
I tested and work!!! (see images attached)

Thanks for TechAndMore (YouTube)
 

Attachments

  • B4A2MemuDisconnected.png
    B4A2MemuDisconnected.png
    79.1 KB · Views: 1,044
  • B4A2MemuConnected.png
    B4A2MemuConnected.png
    75.7 KB · Views: 1,037
Top