Tutorials & Examples

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

[B4X] Regular expressions (RegEx) tutorial

Regular expressions are very powerful and make complicate parsing challenges much easier.
This short tutorial will describe the usage of regular expressions in Basic4android.
If you are not...
 
Last edited:

[B4X] Public variables, custom types, ...

Last edited:

[B4X] Projects Templates

This is a new feature. It is included in B4J v8.50 and B4i v6.80 (betas) and will be included in the next versions of B4A and B4R.

1594122248131.png


This is a very simple and useful feature. When you...
 

Attachments

  • B4XPages.b4xtemplate
    9.6 KB · Views: 1,159
  • B4XTurtle.b4xtemplate
    3.3 KB · Views: 1,067

[B4X] Program from everywhere even while being on the road - It can be done already

I was thinking how can I realize what is mentioned bellow for helping a friend with no computer for now, without waiting for it to happen (if ever - no offense @Erel but I know you are busy)...
 
Last edited:

[B4X] Postman.com

Here is an app I knew it existed but I had never dared until now to try it and I regret this deeply. It is Postman. With this app available both on-line and as a local app (photo) you can check...
 

[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] PHP implementation of B4XSerializator and PhpCloudKVS Server example

Hello,
First of all, sorry for my bad english... I'll try to do my best...

For my project, I ported the source of B4XSerializator of @Erel from here to php.
Even if php is considered...
 

Attachments

  • B4XSerializator_for_php_v0.5.zip
    2.8 KB · Views: 534
  • PhpCloudKVS_Server.zip
    41.7 KB · Views: 520
  • PhpCloudKVS_B4JClient.zip
    6.5 KB · Views: 493
Last edited:

[B4X] Paralells Desktop 15 Windows 10 B4A,B4I,B4J and B4R looks blurry (Fix)

Hello,

i have searched for a long time for a fix for this, every time i have B4A on my second monitor on my mac, then the text was blurry and this was no fun to work with...

Now i have a fix for...
 

[B4X] OkHttpUtils2 with Wait For


Downloading resources is simpler with the new Resumable Subs feature.

Using Wait For we can wait for the JobDone event in the same sub that started the download.
No...
 
Last edited:

[B4X] OkHttpUtils2 / iHttpUtils2 and accept all option

Note that OkHttpUtils2, jOkHttpUtils2 and iHttpUtils2 are actually the exact same b4x library.
jOkHttpUtils2_NONUI was required as a special version for non-ui B4J apps. It is no longer required...
 
Last edited:

[B4X] Network + AsyncStreams + B4XSerializator

Attachments

  • B4A_Network.zip
    9.2 KB · Views: 6,215
  • B4A_NetworkOld.zip
    9.2 KB · Views: 2,947
  • B4J_Network.zip
    4.4 KB · Views: 3,585
  • B4i_Network.zip
    4.8 KB · Views: 2,171
Last edited:

[B4X] Net library (FTP, SMTP, POP) with Wait For

Starting from v1.70 of Net, jNet and iNet libraries the asynchronous methods return a 'sender filter' object.
This object can be passed as the sender filter parameter in a Wait For call.
This...
 
Last edited:

[B4X] Nested layouts

1587290214570.png


Lets say that we want to build a layout such as the above where the screen is split into two halves.

If we try to build this layout with a single layout file we will quickly meet a...
 

Attachments

  • NestedLayouts.zip
    12.8 KB · Views: 534

[B4X] MQTT Chat Room

Attachments

  • Chat_B4i.zip
    6.1 KB · Views: 2,139
  • Chat_B4J.zip
    3.8 KB · Views: 3,419
  • Chat_B4A.zip
    11.3 KB · Views: 2,602
Last edited:

[B4X] MQTT - Connect & Reconnect

The ConnectAndReconnect sub takes care of connecting to the broker and reconnecting if the connection has broken.
It sends a "ping" request every 5 seconds to help the MQTT client recognize...
 
Last edited:

[B4X] Mobile App Website - No-Code Builder (Landingpage, Legal notice, privacy policy)

Hey, I found this interesting website today on Producthunt.com.
Create a mobile app website in ⏳ 60...
 

[B4X] Manage your own Let´s Encrypt Certificates (ACME Client)

While looking around on interesting projects to wrap i found a java console app (jar file) which is able to create and manage Certificates which can be used in your Server.
It manages Let´s...
 

[B4X] Localizator with CSV files

For the first time I try to make my apps multilingual and found this very useful helper. But I prefer to use CSV files (not excel) for the translations. So I combined it with this...
 

Attachments

  • B4XLocalizatorCSVTool.zip
    11.6 KB · Views: 391
Last edited:

[B4X] Localizator - Localize your B4X applications

Localizator is a cross platform solution for strings localization.

The strings are defined in an Excel workbook.

SS-2016-07-07_17.00.16.png


They...
 

Attachments

  • B4J_LocalizatorExample.zip
    5.7 KB · Views: 1,396
  • ExcelWorkbook.zip
    7.1 KB · Views: 1,796
  • B4i_LocalizatorExample.zip
    6.1 KB · Views: 1,099
  • Localizator.bas
    4.4 KB · Views: 1,793
  • B4A_LocalizatorExample.zip
    11.6 KB · Views: 1,336
  • B4J_LocalizatorConverterSource.zip
    10 KB · Views: 577
Last edited:

[B4X] Like Animation - smooth and beautiful transition

This is a simple like animation.
It looks smoother and better in real.
ezgif.com-video-to-gif.gif

LikeAnimation:
Private Sub LikeAnimation(xlbl As B4XView,duration As Int)
    Dim txt_size As Float = xlbl.TextSize
    If...
 

Attachments

  • Like Animation.zip
    9.8 KB · Views: 445
Last edited:
Top