B4J Tutorials

jRDC2 client example (using modded jRDC2)

Attached you find an example of accessing a jRDC2 server. This is a conversion of the DBUtils example program (here...
 

Attachments

  • jRDCv2_Client_B4J.2024.07.27.01a.zip
    9.6 KB · Views: 315
Last edited:

[ABMaterial] Creating a color grid container

Ola

ColorGrid.png


Some thoughts are running in my head about implementing this for my color coded events management. So we have 21 colors. So me thinks a 7 row, 3 columns grid will do.

B4X:
Sub...
 

[SERVER] Valid SSL certificate for localhost for your development machine

So I was intrigued that I couldn't have a valid ssl cert for localhost so what I did might be useful to someone:

--- THIS IS DONE IN LINUX ---

1. Generate a RSA-2048 key and save it to a file...
 

Excel Charts and Templates with jPOI library

Attachments

  • ExcelChart.zip
    10.3 KB · Views: 1,262

[IoT] - Raspberry Pi CCTV with MQTT

Simple solution that uses an embedded MQTT broker with a MQTT client to send the camera output to any connected client. The camera used is the standard RPi camera module.

The program starts...
 

Attachments

  • PiCCTV_B4J.zip
    1.1 KB · Views: 1,276
  • PiCCTV_B4A.zip
    7.7 KB · Views: 1,141
Last edited:

Easy upload files with httputils' original poststring to a php script with x parameters

The normal postfile method just posts the file data. So you are not able to get the filename and other needed parameters. There are other examples, but sometimes you need a small solution. The...
 

jRDC2 - B4J implementation of RDC using JDBC microsoft

I used the example that Erel published to create my application and connect it to a server database microsft sql server 2008, in principle I used the odbc open source of JTDS but I had...
 

LogServer sending complex data

Data from classes, types or any other object can be sent as a message to LogServer by writing a Sub to format the data in an easily readable manner.

The example app (B4j) shows this, and...
 

Attachments

  • LoggingTypes.zip
    7.3 KB · Views: 468

Logserver using in multiple modules / classes.

LogServer can only accept one connection at a time, therefore we should not initialize the LogServerClient multiple times to access it from different classes / modules.

Instead, declare it...
 

Fix trails when moving Nodes

Hello,

If youre creating apps that work with moving nodes (in my case D'n'D), you may als have seen that moving nodes sometimes results in ugly trails on the Parent Pane.

Heres how to fix that...
 

[ABMaterial]: Let's glow some birds

Ola

Well, it will take a while for me to 'canvas' everything. Found a nice snippet in CodePen, lovely thing I must say. So I'm thinking, an ABM screensaver!!!

After some exploring (still doing...
 

Attachments

  • MashGlowingBirds.bas
    11.4 KB · Views: 564

[ABMaterial] Opening your app inside B4A WebView

Well

My intention was to have an Android Play Store for my ABM app. I needed my app to remember the login details, meaning that it needs to access localstorage.

Thing is, local storage is not...
 

[ABMaterial] B4JS - 02 Core Functions

[ABMaterial] Creating the diagram..

Ola

For a while I've been thinking about this. I wanted to use a custom component that I could run inside ABM to try and explain my follow up post on Harri's thread. The discussion has been about...
 

Attachments

  • MashSimpleDiagram.bas
    9.4 KB · Views: 749
Last edited:

[IoT] Welcome to the Internet of Things

This example demonstrates how the B4X tools can be used to create a solution with multiple types of components and communication channels.

See the following video (make sure to watch it in HD...
 

Attachments

  • IoTExample.zip
    29.1 KB · Views: 1,703

[ABMaterial] [SOLVED] How to set a default date to be blank?

Hi there

Is it possible to set the default date to be blank / no date for the ABMDatePicker control?

Thanks
 

[B4X] SQlite with 6 million rows

I've written a tutorial about database modelling and how long queries in a good designed db environment should take. This is a example about using huge databases. What it does:

- creates two...
 

Attachments

  • SQLiteExample.zip
    4.8 KB · Views: 1,169

How to create and test a CustomView

Ola

This is a continuation of the MashSkeletor concept. If you are a beginner in b4j custom views you might find this very helpful. In this part, the custom view structure was created and now its...
 

How to create an overview for your B4X articles easily

Hi there

UPDATE: A WebApp using BANAno has been created for this, see here...
 
Last edited:

Firebase Service (Server) Example

Hey,

this is an example/tutorial of a Server that manages Firebase Subscribtions, Unsubscribtions and SendMessages2Topics with the Power of B4J Server!

The advantage is, requests are processed...
 

Attachments

  • FirebaseService.zip
    27 KB · Views: 797
Top