Tutorials & Examples

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

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,534

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

Screenshot_2016-03-13-21-39-37.png...
 
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: 753
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: 633
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: 739
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,302
  • baseapp-withoutFIREBASE.zip
    408.8 KB · Views: 1,135
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,409
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
    Capture+_2019-07-05-23-44-24-min.png
    202 KB · Views: 495
  • Capture+_2019-07-05-23-44-57-min.png
    Capture+_2019-07-05-23-44-57-min.png
    26.8 KB · Views: 466
  • 2019-07-06_000441.jpg
    2019-07-06_000441.jpg
    21.1 KB · Views: 452
  • 2019-07-06_000511.jpg
    2019-07-06_000511.jpg
    38 KB · Views: 443
  • 2019-07-06_000526.jpg
    2019-07-06_000526.jpg
    10.7 KB · Views: 431

[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,840
Last edited:

Creating a table view based on ScrollView

A much improved version is available here.

You can use the code in this example to show data in tabular form.

table_1.png


The table is...
 

Attachments

  • TableExample.zip
    5.7 KB · Views: 6,871
  • TableExample1.1.zip
    12.2 KB · Views: 7,229

Android Wear Install App via Bluetooth

Hello, i see here, that many people have problems to install there wear app to his watches.
I list the steps that are needed so that you can quickly look up when you need it.

Phone:
-install the...
 
Last edited:

Load HTML to Label

Last edited:

Compiling through Google Drive Filestream

Hi,

Last couple of days I have been testing compilation of B4A programs through Google Drive Filestream. Although it is a little bit slower it has a lot of advantages to do this:

- your OpenJDK...
 

B4ABuilder / B4JBuilder - Command line compilation

B4A v4.30 includes a new tool named B4ABuilder.exe (and B4J includes a similar tool named B4JBuilder.exe).

This tool allows you to compile your projects from the command line. This can be useful...
 
Last edited:
Top