Tutorials & Examples

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

Using and understanding Pointers and References

Yes, you heard me right! It is possible to utilize the pointers and references (at least in terms of behavior) in B4X Java-based languages (B4A and B4J). :D

There is a lot to explain about...
 
Last edited:

Generate Extract Grab Direct Youtube DL Link

Hi, am happy to share this project of mine.
What it does is, it accepts normal YouTube link and gets its direct download link from this website https://bitdownloader.com.
The direct download...
 

Attachments

  • mcYoutubeDL.zip
    51.8 KB · Views: 494
Last edited:

A Binary Clock

BinaryClock.png
Noting other than the B4A core lib required...
 

Attachments

  • BinaryClock.zip
    13.8 KB · Views: 483
Last edited:

How to fix the multiple native libraries problem

Error:
It might happen that, when combining multiple native (JNI) libraries, your Android app will crash with an UnsatisfiedLinkError.

Why does this happen?
Well...
 

Attachments

  • native-libs.pdf
    157.6 KB · Views: 446
Last edited:

[SMM] Top sites example

This example uses SimpleMediaManager to show a list of 400 top sites, based on Alexa dataset.

1633602625321.png


Each item is made of two panels and a label:
- Panel for the favicon.
- Panel for the...
 

Attachments

  • Project.zip
    231.5 KB · Views: 439
Last edited:

Pebble Example

This is an example of how to build an app and sent intents to your pebble.
 

Attachments

  • PebbleExample.zip
    9.2 KB · Views: 408

Compass: TRUE HEADING & Magnetic Declination.

I am presenting a test project - Compass. Post #1
- displays TRUE HEADING with local magnetic declination.

Tested in parallel with the application AndroiTS GPS Test v.1.48 Free...
 

Attachments

  • Screenshot_2017-11-TrueHeading.png
    Screenshot_2017-11-TrueHeading.png
    60.4 KB · Views: 755
  • TRUE HEADING.zip
    276.2 KB · Views: 682
Last edited:

Mashy's Overview

Last edited:

Syncing local databases using PHP to access a database on a hosted server

My need was to sync calendars in which user 'A' changes the calendar and sends the change to other users by writing records to the hosted database.
The other users query periodically to see it...
 

Attachments

  • TestPhp.txt
    4.1 KB · Views: 421
  • TestPHP.zip
    12.8 KB · Views: 93
Last edited:

[B4X] [B4XPages] Bluetooth scanner in SPP mode

Introduction

I've been developing mobile application for over 25 years (Telxon, Symbol, Windows Mobile, Xamarin, CF.net). Up until now the barcode scanners were integrated into the mobile...
 

Attachments

  • BluetoothPages-forum.zip
    502.2 KB · Views: 569

B4A-Bridge and VirtualBox (Linux-host)

My OS of choice is Linux (Mint-11) so having to dual-boot out to Windows any time I wanted to run B4A was a pain. I tried running B4A via VBox, but when bridging to my android device I got a list...
 

WebViewExtras Examples for beginners

I noticed a lot of beginners are confused about how to use the WebViewExtras library so I made a detailed example.
If you find it useful, kindly consider buying me a coffee.

Code works on Android...
 

Attachments

  • WebViewExtras.zip
    12.5 KB · Views: 954
  • WebviewExtras2Example.zip
    7 KB · Views: 200
Last edited:

Service Module Example

Service Module using CallSub.

A very simple example. I thought you had to use CallSub from an Activity, but had it backwards.
 

Attachments

  • ServiceModule3.zip
    7.2 KB · Views: 692

Youtube master&slave

Hi,
I have assembled a few examples and I added the code to have a system to control via Bluetooth remote viewing of clips from youtube with two smartphones. A "slave" to be connected with a hdmi...
 

Attachments

  • Master.zip
    11.4 KB · Views: 346
  • Slave.zip
    10 KB · Views: 357
Last edited:

B4a bridge via LAN

Just bought an Android TV box and I mentioned that you can connect to the bridge via LAN (usually WiFi). Even it shows "Not connected to wireless network" and doesn't show a ip address the...
 

User selection of a voice for Text To Speech.

I've just added a speech to text facility to my note taking app using

and text...
 
Last edited:

How do they ... ? #4 (FR)

Here's a link to my new tutorial (in french):
Comment font-ils ? #4

The translation by Google Translate in english is horrible. The translation by Bing Translator is much better.
 

[B4X] AS WheelPicker PlusMinus Example

IMG_4683.jpg

This is an example project to demonstrate what is possible with the beautiful ASWheel. From version 2.0 it is possible per function animated (also possible without animations)...
 

Attachments

  • AS WheelPicker PlusMinus Example.zip
    180.2 KB · Views: 339
Last edited:

Mirror device to windows

Hi
If you use your device with usb debugging in b4a,maybe you love to mirror your device monitor in windows look like other android emulator
Don't worry :D:D:D:D
I found Android mirror
With this...
 

Attachments

  • Archive.zip
    212.8 KB · Views: 376

PC-ANSI encoding on B4A ...

Hi,

normaly B4A use UTF8 encoding, but can create files in ANSI too, but be carefull !
Windows an a Western PC use ANSI codepage 1252, this is in B4A "WINDOWS-1252".
Mostly the encoding...
 
Top