Tutorials & Examples

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

Discovering iBeacon devices with BLE2 library

upload_2015-11-8_12-49-22.png



This example uses the BLE2 library to continuously scan for BLE devices, looking for iBeacons.
It never connects to any device. It parses the advertising data and calculates...
 

Attachments

  • iBeacons.zip
    11.4 KB · Views: 2,164
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,767
  • WebSocketPush.apk
    143.7 KB · Views: 3,110
Last edited:

DBUtils - Android databases are now simple!

Attachments

  • DBUtils.zip
    14.4 KB · Views: 5,969
Last edited:

[B4X] DateUtils - Simplifies Date and Time Calcuations

DateUtils is a code module with a set of useful date and time related methods.
It complements DateTime api, it doesn't replace it.

The methods included in DateUtils:

B4X:
'Calculates the period...
 
Last edited:

SQL tutorial

Update 2018:

New video tutorial:


The source code is available here...
 

Attachments

  • SQL.zip
    8.1 KB · Views: 12,393
Last edited:

Creating and Packaging a Wear App

This tutorial will show you how to create an app for a Wearable device and how to package it so it auto installs.

What is Android Wear?
For those that do not know, Google has released...
 

Attachments

  • WearTest(handheld).zip
    109.1 KB · Views: 1,016
  • WearTest(wearable).zip
    5.5 KB · Views: 972
Last edited:

Android Beam Tutorial

Android Beam is a feature introduced in Android 4 that allows one device to transfer a message to another device by placing the devices back to back. The communication is based on NFC.

The main...
 

Attachments

  • Beam.zip
    8.2 KB · Views: 1,137
Last edited:

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:

Shared Code Modules

Last edited:

Tutorial - How to sign apk with non-B4A keystore

Here is my first tutorial for the community!

This tutorial will show you how to sign a B4A generated apk with a non-B4A keystore. I needed a way to do this for myself since I had some apps out...
 
Last edited:

[B4X] Anchors Demonstrated

SS-2016-02-29_15.19.52.png


SS-2016-02-29_15.19.11.png


The anchors feature is simple to use and is...
 

Attachments

  • AnchorsExample.jar
    317.1 KB · Views: 2,033
Last edited:

Android JSON tutorial

JSON format is a a format similar to XML but usually it is shorter and easier to parse.
Many web services now work with JSON. JSON official site: JSON

Using the new JSON library, you can...
 

Attachments

  • JSONExample.zip
    5.2 KB · Views: 6,395
Last edited:

Android Serial tutorial

Attachments

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

SVN (source control) and Basic4android

Large projects and especially projects maintained by a group of developers usually require a source control system.
Using SVN with Basic4android is quite straightforward with a client tool such as...
 

Testing your app on real devices: pCloudy.com

Hi there

I'm hoping there are other methods of doing this..., if so, let's please share.

Anyway, a client was indicating the app I just sent does not work on their S7 samsung phone. So me, #bang...
 

Attachments

  • pCloudy.png
    pCloudy.png
    97.8 KB · Views: 765
  • googlecrash.png
    googlecrash.png
    18.2 KB · Views: 657
Last edited:

Using App Deeplinking in your app (based on json Config file)

In this tutorial i will show a way of using MobileDeepLinking in your app.

To use App deeplinking in your app to you need to setup your manifet to do so

Lets start with it:

Edit your...
 

Attachments

  • MobileDeeplinkingExample.zip
    8.4 KB · Views: 907
  • libMobileDeeplinkingV1.0.0.zip
    11.9 KB · Views: 990

[IoT] XBee (ZigBee) Communication between Android and Raspberry Pi

Digi XBee modules are a great solution for wireless communication. Using two or more XBee modules you can create a wide area wireless network. The maximum range depends on the antenna and...
 

Attachments

  • RPiXBee.zip
    2 KB · Views: 1,552
  • AndroidXBee.zip
    10.6 KB · Views: 2,012

RDC: How to load blob and fill in to the imageview

Hi All,

With RDC i try to load blob and fill in to the imageview, but not success. Can anybody help me to find what is wrong wih my script :

B4X:
        If Job.JobName = "DBRequest" Then...
 

Mashy's Overview

Last edited:

INFO: AdMob v6.4.1 deprecation from 15th September 2016

Some more information regarding the deprecation of the AbMob SDK v6.4.1:

The email you have gotten about the SDK needing to be higher than v6.4.1 refers to a legacy, standalone Mobile Ads SDK...
 
Top