Tutorials & Examples

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

[B4X] [Visual Designer] Spreading Controls

Question: How can I build a layout with X controls spread horizontally or vertically?

Answer: You can use the designer script for this. As the designer script engine (currently) doesn't support...
 

Attachments

  • 1.zip
    9.5 KB · Views: 779

Signature Capture Tutorial

Several developers were interested in adding support for signature capturing in their Android application.
The attached code module makes it easy to capture the signature and save it to a file...
 

Attachments

  • SignatureCapture.zip
    6.4 KB · Views: 4,184

Using a Git Repository (Version Control) for Beginners



What is Version Control?

Version control software keeps track of every modification to the code in a special kind of database. If a mistake is made, developers can turn back...
 
Last edited:

LockBox3 (Delphi) AES encryption exchange with B4A/B4J

Part 1: The key

This is just a write up of my findings regarding the exchange of encrypted data between B4A/B4J and LockBox3 (Delphi). This write up focuses just on LockBox3's implementation of...
 

Google Maps with FusedLocationProvider

Google Maps uses the GPS as its location provider. It will not show the current location if GPS is disabled.
It is possible to switch to a custom location provider.

For example, here is me...
 

Attachments

  • GoogleMapsWithFusedLocationProvider.zip
    10.4 KB · Views: 1,374

Google Maps

Attachments

  • GoogleMapsExample.zip
    8.4 KB · Views: 4,546
  • GoogleMaps.zip
    19.4 KB · Views: 4,900
Last edited:

WhatsApp Layout Example (Tabstrip + CLV)

Hi all.
I found this example in some old folders on my pc and decided to share here.
it is a simple layout example, the app is whatsapp

This example use a clv and tabstrip

...
 
Last edited:

Happy birthday to you (Beep example)

Hi all.
this example play Happy birthday to you music with beep. (Audio librarie)

B4X:
Sub Globals
    Private lNotas As List
    Private lbNotas As Label
    Private tocando As Boolean
End Sub...
 

Attachments

  • parabens.zip
    217.9 KB · Views: 641
Last edited:

Ventilator Example (it's really windy)

Hi all.
I found this example in some old folders on my pc and decided to share here.
it is a simple example of how notcreate a ventilator in B4A.

On this example have, image...
 
Last edited:

Simple views colision (RPG Game)

Hi all.
I made a simple collision example, where our player (black square) can collide with any other view that has the tag = 1

This example is in Portuguese obviously because I am Brazilian, I...
 

Attachments

  • colisao.zip
    49.7 KB · Views: 493
Last edited:

OpenCV real time car detection examples, by @moster67 (and friends)

This is a full working example of real time ObjectDetection (in this case, cars) using cascadeClassifiers, getting the input from a recorded video file, making use of Videocapture. The example was...
 
Last edited:

AMD Ryzen processor & Android emulator AVD

If you have modern processor from AMD (Ryzen) - x86-variants of AVD cannot work by default.
Android emulator now requires the processors with a virtualization only.

By default Intel processors...
 
Last edited:

Check the Network State and Wifi SSID Name with reflection

============= MANIFEST =====================

B4X:
AddManifestText(
<uses-sdk android:minSdkVersion="5" android:targetSdkVersion="19"/>
<supports-screens android:largeScreens="true"...
 

RC4 encryption to transfer data between Android and PC

Hi,

On one of my projects, I had to transfer sensitive data from Android to PC but - with RC4 encription.
I wrote a little code that I want to share with you...
Maybe Android supports RC4...
 

Attachments

  • rc4.zip
    47 KB · Views: 604
Last edited:

Base app for new user to rapid build app

Update 29/8/2018: i uploaded new version without FIREBASE to help who dont need

B4A is very good app to build Android app.
I want to use it built app same as Android Studio, so i make a...
 

Attachments

  • base-app-source.zip
    409.3 KB · Views: 1,146
  • baseapp-withoutFIREBASE.zip
    408.8 KB · Views: 966
Last edited:

[B4X] Blockchain Example - Create Your Own Cryptocurrency (part 1/2)

Blockchain
A digital ledger in which transactions made in bitcoin
or another cryptocurrency are recorded chronologically and publicly.
In more general terms, it’s...
 

Attachments

  • blockchain example.zip
    2.8 KB · Views: 1,154
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:

CAM2FTP create time elapsed videos

This app save each image into a server via FTP
and if you want download all images to merge into a video

Esta App salva cada imagen en un servidor via FTP
y si lo deseas puedes bajar todas las...
 

Attachments

  • Capture+_2019-07-05-23-44-24-min.png
    202 KB · Views: 361
  • Capture+_2019-07-05-23-44-57-min.png
    26.8 KB · Views: 368
  • 2019-07-06_000441.jpg
    21.1 KB · Views: 343
  • 2019-07-06_000511.jpg
    38 KB · Views: 330
  • 2019-07-06_000526.jpg
    10.7 KB · Views: 316

[B4X] - Google sheets and localizator

Hi everyone,

there is a new way to create the localizator class csv file and it is as easy now as it could never be in the past. Just watch the following video:

(23-6-2019)

In order...
 
Last edited:

BlueTooth Printing via SPP

I finally have reliable, stable printing to a blue tooth printer (Citizen CMP-10 and CMP-20) from my Samsung 5570L Galaxy Mini Android Device running v2.3.6

Attached is a skeleton project...
 

Attachments

  • BTPrint.zip
    8.7 KB · Views: 6,588
Last edited:
Cookies are required to use this site. You must accept them to continue using the site. Learn more…