Tutorials & Examples

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

B4XGoodies Check App

Hi Friends,

As you know, I made an online sheet of Walt's B4XGoodies List and he helped me by providing download links of html and version text files...
 

Attachments

  • B4XGoodies_Check_1.002.zip
    13.7 KB · Views: 718
  • B4XGoodies_Check_1.003.zip
    13.7 KB · Views: 686
  • B4XGoodies_Check_1.004.zip
    139.2 KB · Views: 720
Last edited:

POU Game example

Hi all.
Here is a simple pou game example (only one room).


This example use this another example, but now with images...
 

[B4X] SELECT - don't waste tags

[A simple suggestion, not addressed to "experts"]

I am almost certain that some members, having to identify which view triggered an event, use the tags.

For example:

You have a kind...
 
Last edited:

Decimal Number to Greek Words - Olografos

With this example I show how a decimal number can be translated to Greek words.

For example: Log(DeployCurrencyToText(1234.04)) give the result χίλια διακόσια τριάντα τέσσερα ευρώ και τέσσερα...
 

Vibrating Service - Also with Java code inside B4A project

This is a simple project that makes use of the device's vibrator. You can do the following:
1. Switch the vibrator ON for a specified duration of time (in milliseconds)
2. Switch the vibrator...
 

Attachments

  • JHSVIBRATE.zip
    74.4 KB · Views: 1,090
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

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: 830
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: 711
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:

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: 827
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,381
  • baseapp-withoutFIREBASE.zip
    408.8 KB · Views: 1,214
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,490
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: 630
  • Capture+_2019-07-05-23-44-57-min.png
    Capture+_2019-07-05-23-44-57-min.png
    26.8 KB · Views: 579
  • 2019-07-06_000441.jpg
    2019-07-06_000441.jpg
    21.1 KB · Views: 576
  • 2019-07-06_000511.jpg
    2019-07-06_000511.jpg
    38 KB · Views: 542
  • 2019-07-06_000526.jpg
    2019-07-06_000526.jpg
    10.7 KB · Views: 535

Eyes follow example code

Hi all.
Here is a simple example of how make a eyes folow the touch on a panel.


images.png



another example

a source is attached
 

Attachments

  • move.zip
    100.4 KB · Views: 629

Catch Webview Item's Longclick without late Javascript injection

Sample project to intercept clicks and longclicks on images or text portions in a webview.

The test project was created, because it became necessary to find a suitable solution from the very much...
 

Attachments

  • WebViewLongClick_03.zip
    242.2 KB · Views: 678

MapsDecodePolyline

Hello!

As already told in another thread, i'm working on a navigation app using Google Maps API in combination with Google Directions http-requests for routing.

The http-Requests looks as...
 

Simple example B4XDrawer sliding drawer class with materialicons and fontawesome icons

Good afternoon, I contribute to the community with a small example of the class B4XDrawer with material icons and fontawesome icons.

xIkVytQ.png


Thanks to the whole...
 

Attachments

  • Simple_example_B4XDrawer.zip
    12.4 KB · Views: 1,253
Last edited:

JRC2 - Home banking coordinates card (open)

Hello, excited to share my humble code, which can be used as a two-factor authentication or a secondary login. For this take as an example the use of the bank coordinates card, which allows you...
 

Attachments

  • b4aexample.zip
    13.8 KB · Views: 626
  • Server TEST.zip
    5.5 KB · Views: 576
  • card.jpg
    card.jpg
    116 KB · Views: 710
Top