Tutorials & Examples

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

KeyValueStore class - Simple and efficient key/value data store

Attachments

  • KeyValueStore.zip
    10.7 KB · Views: 4,515
Last edited:

AppCompat with ToolBar - minimal example

In most cases AppCompat is no longer needed and will only make things more complicated.
B4XPages example with dynamic menu...
 

Attachments

  • upload_2017-5-24_12-18-26.png
    upload_2017-5-24_12-18-26.png
    7.3 KB · Views: 3,959
  • AppCompatExample.zip
    9.9 KB · Views: 3,360
Last edited:

ImageDownloader - The simple way to download images

Attachments

  • ImageDownloader.zip
    8.1 KB · Views: 7,151
Last edited:

Inline Java Code

The next versions of B4A (4.30) and B4J (2.80) will allow you to embed Java code inside your B4X code. B4i supports similar feature with Objective C.

The purpose of this feature is to make it...
 

Attachments

  • InlineJava.zip
    12.7 KB · Views: 4,072
  • B4J-InlineJava.zip
    1.2 KB · Views: 2,450
Last edited:

Custom WebSocket Based Push Framework

The online example is currently disabled due to spam :(

Now that both B4A and B4J support WebSockets it is possible to implement a full push framework solution.
The solution is made of two...
 

Attachments

  • Push_Client.zip
    11.5 KB · Views: 4,368
  • WebSocketPush.apk
    143.7 KB · Views: 2,795
Last edited:

Designer Scripts & AutoScale Tutorial

Attached you find a pdf tutorial about Designer Scripts & AutoScale.
It includes Erels Designer Scripts Tutorial and a new AutoScale Tutorial.
It's an extract of two chapters from the next...
 

Attachments

  • AutoScaleExample7.zip
    73.1 KB · Views: 10,259
Last edited:

Modules Attributes

Basic4android v2.50 includes a new method for handling project and modules settings.

These settings are now set in the code itself. The menu items were removed...
 
Last edited:

GameView - Create 2D Android games - Part I

Attachments

  • GameViewSmiley.zip
    9.4 KB · Views: 5,179
Last edited:

Guess my number - Visual designer & Events

[B4X] Smart String Literal

The "smart string" literal is a more powerful version of the standard string literal.
It has three advantages:
  1. Supports multi-line strings.
  2. No need to escape quotes.
  3. Supports string...
 
Last edited:

Material Design 4 - Modifyable and advanced Menu

Note: You should use B4A 6.0 or above for this tutorial.

With the ACToolBar(Light|Dark) object we can get access to the Menu object of the activity. This opens the possibility for modifyable...
 

Attachments

  • ToolBarMenuExample2_0.zip
    18.6 KB · Views: 4,005
Last edited:

RDC - Simple way to create your own back-end database

Remote Database Connector (RDC) is a middleware web server that allows you to easily connect your Android app to any type of remote database server.
Usually you will use it with a database...
 

[B4X] B4XPages - Cross platform and simple framework for managing multiple pages


B4XPages is a library that serves two purposes:

1. Make it simple to develop B4A apps by solving almost all of the challenges involved with Android complex activities life cycle...
 

Attachments

  • ThreePagesExample.zip
    410.4 KB · Views: 6,753
Last edited:

Material Design 2 - Using the AppCompat library

Note: You should use B4A 6.0 or above for this tutorial.

In the first Material Design tutorial we created a simple app with Material Design for Android 5.0 (Lollipop) devices. But what about...
 

Attachments

  • AppCompatExample1_2.0.zip
    8.1 KB · Views: 2,312
  • AppCompatExample2_2_0.zip
    8.3 KB · Views: 2,794
Last edited:

Starter Service - Consistent & Single Entry Point

One of the challenges that developers of any non-small Android app need to deal with, is the multiple possible entry points.

During development in almost all cases the application will start from...
 
Last edited:

FREE Source Code's !

Hi all,

i have updated my webpage and decided to add a tutorial section.

My first tutorial is a simple calculator (+,-,*,/) there is a video tutorial incl. Source code on my site.

I will upload...
 

Attachments

  • t1calc.zip
    3.7 KB · Views: 3,159
Last edited:

Connecting your device to the IDE

Introduction

A program called adb.exe - Android Debug Bridge - is the key component that is used to communicate between programs on your desktop and the emulator or device. adb can be...
 
Last edited:

[B4X] CloudKVS - synchronized key / value store

CloudKVS solves a difficult and common problem. The user needs to work with online data, however as this is a mobile app we cannot assume that the device will always be connected to the remote...
 

Attachments

  • B4J_ServerKVS.zip
    2.8 KB · Views: 2,058
  • B4i_ClientKVS.zip
    8.7 KB · Views: 1,210
  • jBuilderUtils.zip
    2.3 KB · Views: 2,524
  • B4J_ClientKVS.zip
    6.4 KB · Views: 1,571
  • B4A_ClientKVS.zip
    11.6 KB · Views: 2,087
Last edited:

Android Device Unique ID - Alternative to PhoneId

This is an old tutorial. It will not work on new versions of Android. You should either generate a random value when the app starts for the first time or use the advertising id...
 
Last edited:

Reading NDEF data from NFC tags

Using the NFC library you can read NFC tags formatted in NDEF form (NFC Data Exchange Format).
You can read more information about the internal process here: NFC Basics | Android Developers...
 
Top