Tutorials & Examples

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

Material Design 3 - Using a ToolBar as ActionBar

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

Google recommends to use a ToolBar instead of the standard system ActionBar for Material Design apps. In this tutorial we will use a...
 

Attachments

  • ACToolBarExample2_0.zip
    25.3 KB · Views: 3,763
Last edited:

Android In-App Billing v3 Tutorial

Last edited:

Download huge files with HttpUtils2

Attachments

  • LargeFileDownload.zip
    11.5 KB · Views: 2,649
Last edited:

TabStripViewPager - Better ViewPager

Attachments

  • TabStripExample.zip
    10.9 KB · Views: 3,438
  • TabStripViewPager_Library.zip
    30.5 KB · Views: 2,633
Last edited:

Embed an Http Server in your Android Application

The HttpServer library is a new library, based on an open source project named Jetty. This library allows you to easily embed an Http server in your application.

Http server means that you...
 

Attachments

  • HttpServerExample.zip
    58.1 KB · Views: 7,334
Last edited:

Google Maps

upload_2016-2-24_12-2-46.png



Installation instructions:

- Register your app in Google developer console: https://console.developers.google.com
You need to enable Google Maps Android API.
Then click on...
 

Attachments

  • GoogleMapsExample.zip
    8.4 KB · Views: 4,285
  • GoogleMaps.zip
    19.4 KB · Views: 4,622
Last edited:

B4A Beginners Guide

This guide is obsolete ! It is no more updated.
Please use the B4X Booklets.


Here is a Beginner's Guide in pdf format.
The source code for the example programs is included.

All...
 
Last edited:

Service Modules

This is an old tutorial. Most of the information here is no longer correct.



Basic4android v1.2 adds support for Service modules.
Service modules play an important role in...
 
Last edited:

Handle the soft keyboard with the IME library

Android has very good support for custom input method editors (IMEs).
The downside for this powerful feature is that interacting with the soft keyboard can be sometimes quite complicated.

This...
 

Attachments

  • IME.zip
    11.3 KB · Views: 7,955
Last edited:

Android Charts Framework

The purpose of this framework is to allow you to easily add different types of charts to your projects.
The current version supports pie charts, line charts and bar charts.

The framework is...
 

Attachments

  • Charts.zip
    9.6 KB · Views: 7,647
Last edited:

Android Sip / Voip tutorial

With the new Sip library you can make audio calls using Voip (Voice over IP) services.
Sip features were added in Android 2.3 (API level 9). Note that not all devices above Android 2.3 support Sip...
 

Attachments

  • Sip.zip
    6.9 KB · Views: 11,091

PreferenceActivity tutorial

This tutorial explains how to use the new PreferenceActivity library. This library allows you to create the "standard" settings screen.

The settings screen is hosted in its own activity. As this...
 

Attachments

  • PreferenceActivity.zip
    6.5 KB · Views: 941
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,209
  • 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:

StateManager - Helps managing Android applications settings and state

Edit: StateManager was written in 2011. I don't recommend using it for new projects. Use B4XPages + KVS2 instead.

StateManager is a code module which takes care of handling the application...
 

Attachments

  • StateManager.zip
    11.7 KB · Views: 1,697
Last edited:

Android Serial tutorial

Attachments

  • SerialExample.zip
    6.3 KB · Views: 10,547
Last edited:

Android database encryption with SQLCipher library

Attachments

  • SQLCipher.zip
    37.2 KB · Views: 108
Last edited:

SQL tutorial

Update 2018:

New video tutorial:


The source code is available here...
 

Attachments

  • SQL.zip
    8.1 KB · Views: 11,863
Last edited:

Hello world - Installing Android Emulator

Read / Write Excel files on Android

The Excel library is a new library that wraps the open source jexcel project and allows you to read or write Excel workbooks. This library supports XLS files. The new xml based format (xslx) is...
 

Attachments

  • ExcelExample.zip
    12.8 KB · Views: 9,556
  • ExcelLibrary.zip
    13.1 KB · Views: 8,829
Last edited:

XML Parsing with the XmlSax library

Attachments

  • XmlSax.zip
    10 KB · Views: 6,077
Last edited:
Top