Tutorials & Examples

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

B4A Rapid book updated to B4A 10.6

B4A-324x400.jpg

I am happy to announce that the both the paperback and electronic versions of the B4A tutorial and reference book “B4A Rapid Android App...
 

Check if Device Rooted

I hope this example helpful
It will check if the device is rooted or no.
 

Attachments

  • checkroot.zip
    9.3 KB · Views: 526

Voice Recognition Example

A large button is displayed. When the user presses on the button, the user is asked to say something.
The voice recognition engine converts the audio to text.

Then the text is converted back to...
 

Attachments

  • VoiceRecognition.zip
    5.6 KB · Views: 5,555

[B4X] Postman Tutorial

Before some time I have posted my findings upon an application that allows you to test WebAPIs, tinker with them and eventually use the JSON in your projects. This application is postman. Here is...
 
Last edited:

[B4X] B4XTable with custom cells layout

SS-2019-02-06_11.52.16.png


Requires B4XTable v1.01+...
 

Attachments

  • B4XTable-Flags.zip
    429.3 KB · Views: 3,091

[B4X] [B4XPages] BCTextEngine parser: B4X Code Highlighter

java_QIDqgmNTqq.png


firefox_5AjleJ4uQg.png


This is an example of creating a custom parser for...
 

Attachments

  • CodeHighlighter.zip
    14.4 KB · Views: 910
Last edited:

? [B4X] [XUI] [B4XPages] B4A recreating Google Trends results with xCharts - Newer developers

Hello to you all,
Here is an extremely simple example on how to easily recreate Google Trends results using B4XPages with B4A and the xChart library. In this example I used Google...
 
Last edited:

? [B4X] [XUI] [B4XPages] B4A 'Erel Says' hand, eye memory game - Newer developers

Hello to you all,
I decided to recreate this simple but effective game example, the game is based on the B4XPages library. The game is designed for hand, eye and memory coordination, so I called...
 
Last edited:

Add text to image and save it ("water mark")

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 add a text into a bitmap and later save it as image file.

www.jpg
...
 

Turn your camera flash light into a torch - also with Java code inside the B4A project

See attached project. I have created this simple torch (on / off) by making use of java code found on the web and compiling it with Simple Library Compiler. Library files inside the /files folder...
 

Attachments

  • JHSTORCH_v1.zip
    23.3 KB · Views: 1,440
  • JHSTORCH_v2.zip
    117.3 KB · Views: 1,940
Last edited:

[B4X] B4XPages + B4XDrawer

B4XDrawer v1.53 adds support for B4J. This is a good opportunity to create a B4XPages example using B4XDrawer.
It does require some configuration so pay attention.

1594908342696.png


The example is...
 

Attachments

  • 3 pages + drawer.zip
    191.7 KB · Views: 3,570
Last edited:

Example of adding and calling B4X menu items

Midi System Example - Play A Midi File.

Attachments

  • PlayOnly.zip
    10 KB · Views: 839

Android Usb Host Tutorial - AdbTest

Android 3.1 and above devices support Usb host mode. With this feature you can connect to regular client usb devices. Some devices are automatically recognized by the OS and are simple to work...
 

Attachments

  • USBExample.zip
    7.2 KB · Views: 4,179

Custom transitions between activities (+10 effects)

Attachments

  • Screenshot_20210203-174943.png
    Screenshot_20210203-174943.png
    89.1 KB · Views: 359

[B4X] [XUI] ToastMessage Class Modifications

Attachments

  • clXToastMessage1.b4xlib
    4.1 KB · Views: 709

Hint: solving compiler error "Unknown member: initializenewinstance"

I ran into this one today and fortunately my penny dropped rather quickly, though I didn't find anything on the forum about this error; hence this post as it might be useful for others. I was...
 

CHART JS IN ANDROID

Hi i make this example how you can add Chart JS in your project.


I was use this example...
 

Attachments

  • CHARTJS.zip
    218.7 KB · Views: 490

[XUI] CustomListView with floating titles

clv_floatingtitle.gif


Title items are added to the list.
A Panel is set above the list. The panel shows the current title when the top visible item...
 

Attachments

  • CLV_FloatingTitle.zip
    9.4 KB · Views: 1,150
Last edited:

FitBit Authentification and use of the FitBit Web Api (http)

Fitbit_app_icon.png FitBit OAuth and HTTP SDK

You need to define an App in the FitBit Console at https://dev.fitbit.com/apps

Make sure to set your "OAuth 2.0 Application Type" to...
 

Attachments

  • FitBitEx.zip
    11 KB · Views: 478
Last edited:
Top