B4J Tutorials

[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,627
  • Asteroids.zip
    244.3 KB · Views: 1,605
Last edited:

Modal dialogs

B4J allows you to show modal dialogs or modal forms.
The difference between a modal form to non-modal form is that with a modal form the calling code will only continue after the form is closed...
 

Attachments

  • ModalExample.zip
    2 KB · Views: 2,409
Last edited:

B4J tutorial for Basic4android developers

B4J development tool is similar to Basic4android. The language and IDE are mostly identical.

The APIs (methods, keywords and libraries) are identical in some cases and different in other cases...
 

FlickrViewer

SS-2013-11-13_12.43.15.jpg


This example downloads an html page, parses it and finds the image links. It then uses a class named ImageDownloader to...
 

Attachments

  • FlickrViewer.zip
    3.2 KB · Views: 1,347

AsyncStreamsObject - Send and receive objects over the network

For new projects it is recommended to use B4XSerializator instead of this solution.



SS-2013-11-14_13.26.52.png


AsyncStreamsObject allows you...
 

Attachments

  • AsyncStreamsObject.zip
    4.1 KB · Views: 3,763
Last edited:

Synchronize ListView Scrolling

Attachments

  • LVSyncClass.zip
    2.8 KB · Views: 800
  • LVSync-2.zip
    3.1 KB · Views: 749
Last edited:

Customized ListView

Use xCustomListView instead.
 
Last edited:

[Server] Regex Tool

Attachments

  • regex.zip
    2.4 KB · Views: 1,331

[WebApp] Quiz Example

B4J HelloWorld(s) Examples

As a helper to get started with B4J, some classical HelloWorld type of apps.
B4J offers many solutions in the way an app(lication) can be developed.

Status: 20150502

Below examples...
 

Attachments

  • B4JHowToHelloWorlds.zip
    23.4 KB · Views: 1,815
Last edited:

In-line Java in multiple modules

I have been using the in-line java for ages and only just discovered that you do not have to put all the code in one module, as I was previously doing.
It can be placed in the module to which it...
 

Attachments

  • java code modules test.zip
    1.6 KB · Views: 734

Use Timelines to 'slide' listviews

Using timelines, it's possible for two (or more if you change code) listviews to occupy the same space on a form.
This demo will slide one listview, revealing the hidden listview. (A bit like...
 

Attachments

  • sliding listviews.zip
    1.9 KB · Views: 769

Nodes / Views / Controls - Tips

I'll try to collect tips related to the UI elements in this thread.

In B4J (and JavaFX) the main UI element is named Node. It is similar to Basic4android View or Basic4ppc (.Net) Control.

B4J...
 

The FASTEST SQLite tables

WebView

Been trying WebView and WebEngine.

Here's a little example of using both. (requires additional library to run)

Shows how to retrieve the hyperlinks in a page and put them in a comboBox, also...
 

Attachments

  • webview.zip
    1.9 KB · Views: 2,377
  • webview2.zip
    2.6 KB · Views: 1,519
  • webview3.zip
    3.6 KB · Views: 1,458
  • webview4.zip
    3.8 KB · Views: 1,693
Last edited:

Charts Framework

Attachments

  • Charts.zip
    5.1 KB · Views: 1,967
Last edited:

[WebApp] Concurrent access to SQLite databases

SQLite databases are very easy to use as they don't require any additional software or configuration.

SQLite support for concurrent access is not comparable to server based databases such as...
 
Last edited:

[Server] Guess My Number example

The purpose of this example is to demonstrate how you can interact with the server through ajax requests.

SS-2014-02-04_13.10.42.png


The server...
 

Attachments

  • ServerGuessMyNumber.zip
    2.4 KB · Views: 1,043
Top