Tutorials & Examples

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

Inline JavaCV/OpenCV

Last edited:

QR Code - Reverse Engineering a QR Code

pic1.png


I am leaving this project here for now. The majority of the work has been done to extract the critical information of a QR code - it is reported in the text box to the right of the qr...
 

Attachments

  • JHSQRCODEREADV4.zip
    19.7 KB · Views: 883
  • qrcodev21ehm6.zip
    443.9 KB · Views: 930
  • qrcodev4elm5.zip
    206 KB · Views: 847
Last edited:

Various Utilities created with Inline Java Code

The attached project (VariousUtilities.zip) has a large number of Bitmap and String Utilities. There is also a utility that lists the sensors of your device in the Log. Three B4A classes are...
 

Attachments

  • VariousUtilities.zip
    214.9 KB · Views: 868
  • VariousUtils.zip
    24.6 KB · Views: 724

[B4XPages] Admob Example

Check this other excellent example from @Jack Cole.

To help the new members to make money with B4A, I tried to compile all the relevant Admob code (except mediation) of the...
 

Attachments

  • b4xpages_admob_example5.zip
    53.8 KB · Views: 253
Last edited:

QR Code Scanning View Finder Width and Height

SLC1.png


This is what I have done to be able to control the width/height of the scanning window in Nelson's project posted at...
 

Attachments

  • NELSON SOLUTION V2.zip
    188.8 KB · Views: 971
Last edited:

VideoView Alternative JavaScript

For those having problems with the Android Videoview, here is a possible alternative that may be worth trying.

It's a javascript open source HTML5 video player for playing videos in a webview...
 

Attachments

  • VideoJS.zip
    109.2 KB · Views: 2,062
Last edited:

Midi USB device manager

The attached project shows the use of the USB library to communicate with Midi Devices over USB. I realize that this may open a can of worms, as it seems nothing about Midi communication is...
 

Attachments

  • USBMidiTest3.zip
    13.7 KB · Views: 765
  • USBMidiTest3-B4a3.2.zip
    13.5 KB · Views: 660
Last edited:

UltimateListView Image Grid Example

Attachments

  • ulv_grid.zip
    221.3 KB · Views: 1,686

WhatsApp Spy (educational purposes only)

Important: This tutorial is for educational purposes only, so we are not encouraging you to use this information for illicit purposes.

Required Andoird 4.4+ (sdk 19+)
...
 

Attachments

  • wal.zip
    9.1 KB · Views: 1,952
Last edited:

Firebase Database working example

Hi,

I decided to post this working example in the hopes that it can be useful to some people, and also maybe eventually someone will update it. I find database one of the most useful things in...
 

Attachments

  • Working Firebase Database example simple (no credentials).zip
    480.4 KB · Views: 1,810
Last edited:

Praise to the data type Map.

As you know, Map is a kind of list of pairs of data; each pair is composed of a key and a value which can be of any type.

An example that I believe can be useful:

You have a beautiful table...
 
Last edited:

7 Segment LED Digital Clock

Attached project simulates a 7 segment LED digital clock. No libs other than the B4A core lib are required.
You can also try this analog clock here

DigitalClock.png
 

Attachments

  • DigitalClock.zip
    58.2 KB · Views: 1,632
Last edited:

Firebase Messaging: Chat app without server

When you register to FCM your app will receive a FCM token. Another app can send a message to this token. Probem here: How do I know the token of another device/user? Usually you have a server...
 

Attachments

  • FCM_Show.zip
    33.5 KB · Views: 1,409

Send Firebase notification via PHP (CURL)

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 send a firebase notification via php

PHP:
<?php
        $url =...
 

Attachments

  • firebasephp.zip
    882 bytes · Views: 808

Share My Experience With B4A-Full Source "Youtube Download"

p/s: i have uploaded patch file audio.xml

you must replace this file to your core library folder
(Exam: C:\Program Files (x86)\Anywhere Software\Basic4android\Libraries)

Thank @Erel and...
 

Attachments

  • youtubedownload-tob4a.zip
    239.2 KB · Views: 1,287
  • Full-Liibrary.zip
    503.5 KB · Views: 1,602
  • Audio.zip
    4.8 KB · Views: 815
Last edited:

Torch plus Morse code from the Flash and the Vibrator

The attached project has a dual purpose:
1. Send Morse Codes with the camera flash
2. Serve as a Torch

The Morse Code functionality might be useful when you are lost in mid ocean and need to...
 

Attachments

  • JHSflashMorse.zip
    84.4 KB · Views: 1,061
  • morseCode1.zip
    2.8 KB · Views: 807

Use a handheld Bluetooth scanner via SPP mode

Update: Code to reconnect added


I've bought a BT handheld scanner on Ebay for about 45€ like this:
scanner.jpg

It comes with a sheet with barcodes which can be scanned to do some...
 
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,054
  • baseapp-withoutFIREBASE.zip
    408.8 KB · Views: 871
Last edited:

Native Camera + Crop - Native Galery + Crop

hi i make a simple code using the google and intent *-*

This code is very very simple and call the native crop later save the image
with native camera or galery

B4X:
#Region  Project Attributes...
 

Attachments

  • MEUS EXEMPLOS.zip
    502.6 KB · Views: 6,781

B4A -interpreter for Android / programming on the device

B4A-Interpreter

I've made a B4A interpreter that runs B4A-Code on Android
to write easy B4A-test programs on my Phone.
To make an app only copy the source code back to the...
 

Attachments

  • androidb4a.zip
    8 KB · Views: 649
  • androidb4a2_7.zip
    7.3 KB · Views: 687
  • B4AInterpreter0_3.zip
    354.4 KB · Views: 863
  • B4Ainterpreter0_4.zip
    355.2 KB · Views: 573
Last edited:
Top