Tutorials & Examples

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

Sound Meter

Hello.
the project was prepared using only the libraries in the forum.

live line chart #Johan Schoeman...
 

Attachments

  • Screenshot_20230422-130730.jpg
    5.7 KB · Views: 402
  • sound1.zip
    34.3 KB · Views: 339
  • Screen_Recording_20230422_130822_1.gif
    88.5 KB · Views: 346

Resizing Text Control Custom View - Set text control size based on text - Non Latin Text fix

There are many occasions when you need to have multiple labels which all size themselves to their contents and also align with each other with no space.

The solution to this is to use...
 

Attachments

  • clvwithresizingtextupdated.zip
    369.8 KB · Views: 324

UltimateListView Example

This is an ULV example I wanted to share for a long time, since I thought it was *very* cool.

It demonstrates:
- Sticky headers
- Swipe gestures
- Animations (appearing out)
- Selected State...
 

Attachments

  • ULVExample.apk
    183.9 KB · Views: 1,792
  • scrtemp.png
    77.6 KB · Views: 4,333
  • ULVExample.zip
    12.2 KB · Views: 2,967

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: 2,085
  • jRDC SQL Server.zip
    5.2 KB · Views: 1,918
  • Script TestSQLServer.txt
    857 bytes · Views: 1,781

[B4X] AS_TabMenuAdvanced Custom Middle Button

In this example we add a MiddleButton that is larger than the internal one and is outside the TabMenu.
...
 

Attachments

  • AS TabMenuAdvanced Example.zip
    281.1 KB · Views: 665

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...
 

Please test reading your NFC credit card.....

Please test scanning of your NFC enabled credit card using the APK in the download link below. Please ensure that you have enabled NFC on your cell/device before you do a scan - the...
 
Last edited:

Help Management for Application

Hello hope your'e well.
Apps are getting more and more complicate and to work with the user needs a manual. This examples shows how you can add an help dialog to your B4XPages Project. The help...
 

Attachments

  • Screenshot_20210713-125404.png
    173.5 KB · Views: 667
  • Screenshot_20210713-125410.png
    17.5 KB · Views: 582
  • pdfHelpExample.zip
    263.6 KB · Views: 500

[B4X] MQTT Chat Room

Attachments

  • Chat_B4J.zip
    3.8 KB · Views: 3,626
  • Chat_B4i.zip
    6.1 KB · Views: 2,292
  • Chat_B4A.zip
    11.3 KB · Views: 2,860
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: 1,270
Last edited:

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: 633

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: 366
  • wifiSMS.zip
    118 KB · Views: 370

ScrollView examples summary

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...
 

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: 380
  • IntentUSB.zip
    10.6 KB · Views: 373
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: 502
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:
Cookies are required to use this site. You must accept them to continue using the site. Learn more…