Tutorials & Examples

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

SQLiteLight four simple SQLite projects

Some users asked here for a simple SQLite project as an example to make their first steps in SQLite.
The already existing examples seem beeing somewhat complicated for beginners.

These...
 

Attachments

  • SQLiteLight1.jpg
    SQLiteLight1.jpg
    18.6 KB · Views: 6,064
  • SQLiteLight2_1.jpg
    SQLiteLight2_1.jpg
    41.1 KB · Views: 5,875
  • SQLiteLight2_2.jpg
    SQLiteLight2_2.jpg
    20.1 KB · Views: 5,144
  • SQLiteLight2_3.jpg
    SQLiteLight2_3.jpg
    16.4 KB · Views: 5,037
  • SQLiteLight2_4.jpg
    SQLiteLight2_4.jpg
    32.3 KB · Views: 5,413
  • SQLiteLight1.zip
    130.9 KB · Views: 278
  • SQLiteLight2.zip
    204.2 KB · Views: 242
  • SQLiteLight3.zip
    230.8 KB · Views: 232
  • SQLiteLight4.zip
    229 KB · Views: 266
Last edited:

Dialogs library 2017 - Custom dialogs and async methods

Dialogs v4 is an extension to @agraham original dialogs library. It requires B4A v7+.

SS-2017-06-01_16.00.52.png


The main changes are...
 

Attachments

  • DialogsExample.zip
    9.8 KB · Views: 4,083
Last edited:

Accessing third party Jar with #Additionaljar and JavaObject - Picasso

The #AdditionalJar module attribute (introduced in B4A v3.80) allows us to reference external jars.
With the help of JavaObject it is now possible to integrate third party jars without a wrapper...
 

[B4X] Network + AsyncStreams + B4XSerializator

Attachments

  • B4A_Network.zip
    9.2 KB · Views: 6,213
  • B4A_NetworkOld.zip
    9.2 KB · Views: 2,945
  • B4J_Network.zip
    4.4 KB · Views: 3,585
  • B4i_Network.zip
    4.8 KB · Views: 2,170
Last edited:

Signature Capture Tutorial

Several developers were interested in adding support for signature capturing in their Android application.
The attached code module makes it easy to capture the signature and save it to a file...
 

Attachments

  • SignatureCapture.zip
    6.4 KB · Views: 4,056

Android SQLite Viewer

SQLite Viewer is an open source application that allows you to view the contents of SQLite databases right from your Android device...
 

Attachments

  • SQLiteViewer.zip
    15.1 KB · Views: 2,776
Last edited:

Custom ListView library

Here's a library tutorial to hopefully show the basic steps required to create a custom ListView.

The custom ListView creates each ListView ListItem from a layout XML file - your...
 

Attachments

  • MyListView.zip
    31.1 KB · Views: 4,547

Code Obfuscation

This tutorial is relevant for B4A and B4J.
During compilation B4A generates Java code which is then compiled with the Java compiler and converted to Dalvik (Android byte code format).
There...
 
Last edited:

Android SMB / CIFS tutorial

Android based Closed Circuit TV (CCTV) example

Attachments

  • CCTVServer.zip
    30.1 KB · Views: 4,260
  • CameraCCTVClient.zip
    10.3 KB · Views: 4,123
Last edited:

CharSequence / CSBuilder Tutorial

B4A v6.80 adds several new features related to the ability to format rich strings.

upload_2017-2-14_12-30-39-png.52855


CharSequence is a...
 
Last edited:

No-IP Android client - Access your device over the internet

SS-2013-02-21_16.08.18.png


The following solution allows you to access your Android device over the internet. The device must be connected to a...
 

Attachments

  • DynamicIp.bas
    2 KB · Views: 2,719

Currency Converter - Http web services and more

Attachments

  • CurrencyConverter.zip
    9.8 KB · Views: 2,972

Android push notification (C2DM) framework and tutorial

How to make games

How to make games

A great idea, but a disappointing result

You woke up one morning with a great idea for a game. You rushed to your phone to convince your best friend to...
 
Last edited:

B4A-Bridge source code

B4A-Bridge is made of two components. One component is running on the device and the other is embedded in the IDE.
The device side is the server side. It waits for connections and when a...
 

Attachments

  • B4A-Bridge-source.zip
    29.5 KB · Views: 733
Last edited:

[B4X] Resumable subs that return values (ResumableSub)

Last edited:

WebView Tutorial

WebView tutorial

I wanted an easy way to provide in-app documentation such as help screens etc.

I was thinking of going with the CustomListView and then trying to colour some of the lines of...
 

Attachments

  • WebView2Empty.zip
    142.3 KB · Views: 4,695
Last edited:

Automatic Foreground Mode

This is a new feature added in B4A v8.0.

Starting from Android 8.0, services cannot be simply started while the app is in the background or not running at all. Background means that there isn't...
 
Last edited:

Nine patch images tutorial

Android supports a special format of PNG images that can be resized by replicating specific parts of the image.
This images also include padding information.
These images are named nine-patch...
 

Attachments

  • NinePatchExample.zip
    7.4 KB · Views: 2,572
Top