Tutorials & Examples

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

Foreground Service with Notification Builder

The app I'm building will allow the user to configure a series of timed actions, then execute them in order using "play" controls looking much like a music player (play/pause, skip...
 

Attachments

  • LongRunningService.zip
    11.6 KB · Views: 891
Last edited:

MJPEG / CCTV Server

Attachments

  • MJPEG_CCTV.zip
    12.6 KB · Views: 3,271
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: 636
  • B4i_BC_Performance.zip
    1.8 KB · Views: 549
  • B4J_BC_Performance.zip
    1.6 KB · Views: 501
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:

[TEST RESULT] a <> b vs. Not(a = b)

[UPDATED]

Lately I've fallen into the habit of using Not instead of <> for Boolean comparisons - eg: Not(a = b) instead of a <> b. I'm not sure why I started doing this - probably because I think it...
 
Last edited:

AES128/Rijndael cipher implementation animation

Hi everyone,

in the following link you can find an animation about how the AES128/Rijndael cipher is implemented. As you will see, it is a mix of shifting/mixing/substituting (simple or by matrix...
 
Last edited:

GPS tutorial

This example shows how to work with the GPS library.

upload_2016-6-23_9-56-49.png


The GPS object is declared in the Starter service. It is easier to put the GPS in a service and not in an Activity as the...
 

Attachments

  • GPS.zip
    8.1 KB · Views: 7,276
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,302
Last edited:

Please join Facebook group

[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")...
 
Top