Tutorials & Examples

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

[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: 676

Slow Motion video recording using CamEX2

Here is the example of SlowMo video capture using Camera2 API and CamEX2 class. This is the code for recording slow-motion video which you can find at the bottom of CamEX2 Class of attached...
 

Attachments

  • CamEx2_SlowMo_Video.zip
    16.9 KB · Views: 693
Last edited:

Do not start a B4A project before you read the guides

After reading so many threads from new 'member' s , I feel that we have to make humble request to all new members :

Do not start a B4A project before you read the guides....
 

Code Obfuscation

This tutorial is relevant for B4A and B4J.
During compilation B4A generates Java code which is then compiled with the Java compiler and converted to Dalvik (Android byte code format).
There...
 
Last edited:

Android Bluetooth / BluetoothAdmin Tutorial

Better implementation based on B4XPages:
Tutorial was rewritten in April 2018.
We will create...
 

Attachments

  • Bluetooth.zip
    12.4 KB · Views: 7,106
Last edited:

[B4X] B4XImageView - ImageView + resize modes

B4XImageView is a new custom view, added to XUI Views v2.40.

It adds several useful resize modes to the standard ImageView:

1597820737069.png


(Images source...
 

Attachments

  • Example.zip
    352.5 KB · Views: 3,275

B4A Book Updated to Version 7.01

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: 953
  • VariousUtils.zip
    24.6 KB · Views: 817

[B4X] [Video]How to's, B4A UI, andTutorials from Leafecodes

My Youtube Channel Link - Please Subscribe


This video takes you through the process of creating onboarding...
 
Last edited:

Android Device Unique ID - Alternative to PhoneId

This is an old tutorial. It will not work on new versions of Android. You should either generate a random value when the app starts for the first time or use the advertising id...
 
Last edited:

B4A eBook en Español

9781871281453-10.jpg

We are delighted to announce that our best-selling book "B4A Rapid Android App Development using BASIC" is now available in Spanish...
 

Amir_RecyclerView-Samples

Last edited:

B4XPages vs Activities, Bluetooth Example

In the thread BT Pages Example, a new version of the BT example was created using Pages. Since I'm just looking at Pages for the first time, I popped the new and old versions into a code...
 

Attachments

  • BT_Activities_vs_Pages.zip
    32.3 KB · Views: 491

IDE Theme: Night Owl

Even though I don't know enough to help people with B4A code, I thought that I would give back what I can and share an IDE theme with you.

I ported one of my favourite VS Code themes, Night...
 

Attachments

  • Night Owl.zip
    1.2 KB · Views: 532
Last edited:

About Box with OSL clickable links

Finally, I got my project completed. I learnt a lot of things about Android from this community. This community has generously provided source code to various UI's and more, without which I would...
 

Attachments

  • about_box_example.png
    about_box_example.png
    51.9 KB · Views: 362
  • AboutBox.zip
    17.6 KB · Views: 360

Material Design 4 - Modifyable and advanced Menu

Note: You should use B4A 6.0 or above for this tutorial.

With the ACToolBar(Light|Dark) object we can get access to the Menu object of the activity. This opens the possibility for modifyable...
 

Attachments

  • ToolBarMenuExample2_0.zip
    18.6 KB · Views: 4,162
Last edited:

How to use NoxPlayer with B4A

It's recomended to use a real device or the Android SDK included emulator.

But if you for some reason want to use NoxPlayer as emulator it is easy!

Alternative 1 - Connect B4A IDE directly to...
 
Last edited:

[B4X] B4XPages - Converting to B4XPages

I'm opening this thread to collect tricks and caveats I'm coming across while converting my projects to B4XPages

CallSub from Service
Looks like a service that is started at boot may...
 
Last edited:

[B4X] Erel Teaches Programming - video tutorials

ETP is a series of video tutorials about B4X. The purpose is to allow developers with any programming experience, including no experience, to learn how to program with B4X.

The videos are...
 
Last edited:

[B4X] Corona Cases - Cross platform Example

Last edited:
Top