Tutorials & Examples

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

Print Made Easy

After understanding this approach, printing will be painless for you forever.

Requirements:
- Any pdf file generation tool, I used HtmlToPdf lib.
- Any base64 converting tool, I used...
 
Last edited:

Background location tracking

SS-2018-11-29_15.48.38.png


Simple example of a foreground service that keeps the process running in the background. The current location is shown in...
 

Attachments

  • MyLocation.zip
    9.3 KB · Views: 962
Last edited:

android.jar / targetSdkVersion / minSdkVersion

There are several versioned components that affect the compilation process and the runtime behavior of our apps.
The purpose of this tutorial is to explain the differences between them and help...
 
Last edited:

B4X Object Browser - new thread

Hi. Please place any new questions or comments about the B4X Browser here.
 

Full Chat (NovaChat)

Download the Library for free here : Download
 

💡 Part 2 Examples - Creating long lists using xCustomListView with Lazy Loading - Newer developers

Hello All,
If you're not experienced with using xCustomListView (xCLV) with Lazy Loading (LL) when it comes to loading long lists of data, then I strongly suggest that you read the following post...
 
Last edited:

Running B4A Apps in Split Screen Mode

Tutorial – Running B4A Apps in Split Screen Mode

I’m learning this as I go along so there may be errors of fact. If so then post a correction below and I will modify this tutorial...
 

Attachments

  • SplitScreenTest_1.0.zip
    11.7 KB · Views: 538
Last edited:

[B4X] BBCodeView Anchors Example

1684912822081.png
1684912838657.png


A small, cross platform, example of using the new anchors feature of BBCodeView.

It reads a CSV file with information about US politicians. The data is used to...
 

Attachments

  • Anchors2.zip
    449.9 KB · Views: 194
Last edited:

Protect your application against copy and changes

This method uses the F5Steg and PackageUtils libraries from ProBundle.

There's a demo available in the Play Store...
 

Attachments

  • Challenge.zip
    71.3 KB · Views: 864

Tutorial of connecting Android to MS SQL Server using jRDC2

Hi

Here is a tutorial that shows the steps of how to make an Android connection to MS SQL Server using jRDC2.

Download tutorial here:
Attached the Mobile...
 

Attachments

  • Example B4A.zip
    10.4 KB · Views: 1,838
  • jRDC SQL Server.zip
    5.2 KB · Views: 1,706
  • Script TestSQLServer.txt
    857 bytes · Views: 1,577

B4A-Bridge over wifi without a local network

Starting from B4A v5.0, B4A-Bridge over Bluetooth is no longer available. You can use B4A-Bridge over wifi or USB debug mode to connect the IDE to a device.

By creating a mobile hotspot you can...
 

[B4X] MQTT Chat Room

Attachments

  • Chat_B4i.zip
    6.1 KB · Views: 2,148
  • Chat_B4J.zip
    3.8 KB · Views: 3,428
  • Chat_B4A.zip
    11.3 KB · Views: 2,616
Last edited:

Camera2 - Still images and videos

Camera2 library is based on the Camera2 API introduced in Android 5 (API 21).
It is designed to work together with CamEx2 class.
It is supported by B4A v7.3+. The library will be included as...
 

Attachments

  • CamEx2.zip
    22.4 KB · Views: 848
Last edited:

ScrollView examples summary

Last edited:

[B4X] Simple audio call over internet with own TURN/relay server

Attachments

  • [B4A] Socket.io Simple Call Example.zip
    116.8 KB · Views: 997
  • [B4i] Socket.io Simple Call Example.zip
    111.7 KB · Views: 745
  • [Server] Socket.io Simple Call Example.zip
    2.4 KB · Views: 964
Last edited:

How to convert from Firebird to Sqlite

I had to deal with a database format transformation problem from Firebird to SqliteDb
I want to share my experience because I've already seen some users who asked questions about Firebird...
 

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:

Geofence - Monitoring a region in the background

Geofencing is an Android feature that allows your app to be notified when the user enters or exits a monitored region.

The nice thing about this feature is that your app doesn't need to run for...
 

Attachments

  • Geofence.zip
    15.6 KB · Views: 374
Last edited:

Audio Ringbuffer

if you want to build instant music in apps from single sounds, it is important that the samples are absolutely synchron and perfect in timing. So you should send one single stream to the system...
 
Last edited:

FusedLocationProvider + Resolution Dialog

** This is the only option to enable location services from inside your app. **

Example was updated and is based on B4XPages.
Don't miss:

1. ShowResolutionDialog sub that is added to Main. It...
 

Attachments

  • Project.zip
    14.6 KB · Views: 1,179
Last edited:
Top