B4J Tutorials

[IoT] Raspberry 2 & B4J from the scratch...

This tutorial is about:

- Installing a brand new RaspBerry 2 (RB) (older models will do, too)
- configure WiFi on the RB
- get remote access to the RB from your PC via "Putty"
- share files...
 
Last edited:

B4J: Using RSA with OpenSSL & php

Here's an example B4J app which

- creates RSA Keys
- send the public key to a php script with a message
- the php will encrypt/decrypt/Send the server's keys
- concert/load the server's keys to...
 

Attachments

  • RSAExampleB4J.zip
    3.2 KB · Views: 604

Getting Started Examples

This package includes several simple examples to help developers get start with B4J.

The following examples are included:
  • Hello World - One line example that prints Hello World.
  • Guess...
 
Last edited:

Internal Visual Designer

Starting from B4J v3.50 the IDE includes a visual designer similar to B4A and B4i designer.
The output of the designer is a bjl file. This file can be loaded to other panes or containers with:
B4X:
...
 

[ABMaterial] Number of Data Grid Rows to Display

I work on a laptop (14" screen) as my primary screen.
I also have a 21 inch screen as my extended display (used for browser display mostly).

The Feedback example hard-coded the number of...
 

[IoT] Traffic Light with Raspberry Pi

This is a simple example of a traffic light implementation using Raspberry Pi 2.

The red, yellow and green leds are connected to pins 27, 28 and 29 (see the numbering scheme...
 

Creating 1D and 2D Barcodes using inline Java Code and the ITEXT library

The attached project uses inline Java code and the ITEXT library to create various types of 1D and 2D barcodes. The barcodes are store in a PDF file(s). Change the code in the B4J class or add...
 

Attachments

  • ITEXT_BARCODES.zip
    4.5 KB · Views: 1,167

[example] B4X Time Tracker

Time tracker example with a server component and iOS and Android client apps.
The client apps allow the employees to check in and out (based on the current status).
upload_2015-7-29_16-5-40.png
upload_2015-7-29_16-4-50.png
...
 

Attachments

  • TimeTracker-B4A.zip
    11.8 KB · Views: 877
  • TimeTracker-B4i.zip
    9.2 KB · Views: 757
  • TimeTracker-B4J.zip
    7.1 KB · Views: 953
Last edited:

[Server] Online Json Tree Example

Attachments

  • ServerJsonTree.zip
    7.7 KB · Views: 1,892
Last edited:

The Official Raspberry Pi Projects book

Free download here
 

[IoT]Control a LCD display with you RaspBerry

Last edited:

Raspberry Pi 2 - Server Performance

I ran some tests to check whether the Raspberry Pi 2 can be suitable for server solutions.

The tests were similar to the tests previously done on a PC...
 

[Server] Send and receive objects

This is an old example. Better use B4XSerializator to serialize objects.

One of the nice things about using B4J server as the backend of B4A applications is that you can send and receive...
 
Last edited:

Companion thread to B4J Training Video 5 - Bridge Scripts

As promised in this the B4J Training Video about the Bridge, I am attaching the scripts for running the Bridge from Mac or Raspberry Pi (Linux):

Mac:
1) Create a file called bridge.sh
2) Insert...
 
Last edited:

(B4X) Creating LAMP server with b4x on Amazon EC2

LAMP: Linux Apache MySQL PHP

In this tutorial I will explain how to bring complete working server, on Amazon EC2 (you get 1 year free)

I am using this server for sending notification for iphone...
 

[WebApp][IoT] PiFace (Raspberry Pi) Server Example

SS-2014-04-17_10.51.25.png


This example demonstrates how a Raspberry Pi board can be controlled from the browser.

It tracks the switches state and...
 

Attachments

  • PiFaceServer.zip
    6 KB · Views: 1,631

where to code put code when using multiple forms

I've started using B4J after using B4A for a few months. What is the best structure of the code when using multiple forms. Unlike B4A where each activity has its own code, or indeed with vb.net...
 

[IoT] Headless Raspberry Pi

During my building of a security camera for my wife's mall store and prep for projects with my personal RPi and PiFace, I quickly discovered that having a headless RPi would be nice.

What is a...
 
Last edited:

TreeView Tutorial

B4J v1.05 adds support for the TreeView node.

TreeView as it name suggests visualizes a tree structure.

Each item in the TreeView is a TreeItem (or CheckBoxTreeItem). Each item has a list of...
 

GameView - Simple Sprites Engine

Attachments

  • jGameViewHelper.zip
    5.6 KB · Views: 1,612
  • Asteroids.zip
    244.3 KB · Views: 1,594
Last edited:
Top