Tutorials & Examples

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

Backup/Restore SQLite Database

Hello
This is an example of how to back up and restore the SQL Lite database as the database produces three files with three extensions
with the following extensions 'db.db'...
 

Attachments

  • backup.restore.sqlite.zip
    17.7 KB · Views: 432

my share creation simple carousell

For the First I said Thank Too Much For Great Mr.Errel That my Inspirator, StarDust and All Of member that i can't say person by person, i wish yours appologize of my bad english, this my first...
 
Last edited:

Send and Recive SMS from PC using AsyncStreams in Wifi e VB.Net

android 12
 

Attachments

  • SMSWifi12.zip
    114.4 KB · Views: 247
  • wifiSMS.zip
    118 KB · Views: 242

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:

Intents and receivers

With the new imodules that allow you to work better with the intent and receivers, it is necessary to develop some examples of how to use them (even before it could be done but not in...
 

Attachments

  • device_filter.zip
    413 bytes · Views: 225
  • IntentUSB.zip
    10.6 KB · Views: 230
Last edited:

AdMob mediation with Meta - Facebook and 20+ other networks (not tested)

This tutorial assumes that you already have FirebaseAdMob2 implemented in your app.

Implementation is tested in native Android app, not in B4A. You can test it if you want.

You need to...
 
Last edited:

Check if the application is running on a Chromebook

If you want to check if the application is running on a Chromebook (for example to do some specific GUI reconfiguration to run in a resizable Window), you can use the following routine.
Hope it...
 

Receivers and Services in 2023+

In the early days of Android services were simple to use and powerful. They allowed doing all kinds of things in the backgrounds with very few restrictions. That's not the case with newer versions...
 
Last edited:

Very simple GPS Program

Hi guys,

how to use :

1. copy the starter into your project

B4A:
    If Starter.GPS1.GPSEnabled = False Then
        ToastMessageShow("Please enable the GPS device.", True)...
 

Attachments

  • GPSbyJCD.zip
    7.9 KB · Views: 364
Last edited:

BLE nRF Connect pre-BLE2 problem solving

It is surprising how often the basics get missed, when embroiled in heat of battle of programmer vs hardware, operating system, complex apis and libraries, etc.

I have found that whenever my BLE2...
 
Last edited:

New online AI Regex Generator!

Check this out!

sheetai.app which helps use ai in google sheets, just ask it and done!

Quick Demo:



Tutorial:

 
Last edited:

Exploring the b4x UltimateWebView with SithasoDaisy, #TailwindCSS + #DaisyUI UI Toolkit

Hi

This seeks to document my experiences of the UltimateWebView and the newest Sithaso Holdings UI kit, named SithasoDaisy, a TailwindCSS UI kit built on top of BANano + B4x.

Well, this is my...
 

LatLong To Timezone

Hi,
I was looking for a code to know the timezone information from Latitude and Longitude coordinates and I found the code here LatLongToTimezone but it is written in java so I used it in...
 

Attachments

  • B4A_TimezoneMapper.zip
    434.5 KB · Views: 206

Word wrap paragraph text to specified maximum characters line length

We needed to do some word-wrapping re: this thread and figured I may as well post my tawdry effort in case anybody else is looking for ideas 🍻 or code to hang s**t on 🤣

It has some niceish...
 
Last edited:

Valid EAN13 Barcode String

Generate random valid EAN13 barcode string:
B4X:
Public Sub BarcodeEAN13() As String
    
    Dim brcod As String = Rnd(100000000,214000000)
    brcod = "950" & brcod  '<<< change the beginning 3...
 

[B4X] JSON crack - Visualize your JSON as a diagram

Here is a nice tool that visualizes the JSON like a diagram. Pretty cool.

 

Understanding Network security configuration

Every developer must understand this article if developing any kind of network communication app.

Android os recent versions put end apps users privacy at the heart of its platform, the network...
 

[B4X] AS ViewPager - Auto Play

In this example project you can see how to add an auto play feautre to the AS ViewPager.
...
 

Attachments

  • AS ViewPager Auto Play.zip
    10.2 KB · Views: 317
Last edited:

Chat Mqtt Over Internet Free Source Code B4A/B4J

Attachments

  • B4JChatMqtt.zip
    8.3 KB · Views: 473
  • B4AChatMqtt.zip
    13.7 KB · Views: 561
Last edited:
Top