Tutorials & Examples

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

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,797
Last edited:

Android home screen widgets tutorial - part II

Please start with the first part of this tutorial if you haven't read it before.
In this part we will build a "quote of the day" widget...
 

Attachments

  • Quotes.zip
    12.3 KB · Views: 3,259
Last edited:

Add shortcuts to your Android application

Attachments

  • Shortcut.zip
    9.5 KB · Views: 1,935
Last edited:

[B4XPages] Bluetooth Chat Example

1592143666965.png


Updated implementation, based on B4XPages of https://www.b4x.com/android/forum/threads/android-bluetooth-bluetoothadmin-tutorial.14768/#content.

The code is much simpler...
 

Attachments

  • BluetoothChat.zip
    18.2 KB · Views: 923
Last edited:

[B4X] Firebase Push Notifications 2023+

Google has deprecated the previous method of sending push notifications. It will stop working on June 2024.
If you have an already working solution then you only need to update the B4J side. Do...
 

Attachments

  • PushClients.zip
    16 KB · Views: 876
  • B4J-SendingTool.zip
    1.8 KB · Views: 579
Last edited:

[B4X] OkHttpUtils2 with Wait For


Downloading resources is simpler with the new Resumable Subs feature.

Using Wait For we can wait for the JobDone event in the same sub that started the download.
No...
 
Last edited:

Complete tutorial: B4A & Your own (local) php & MySql Server (Xampp) with b4a

Update:

Newer releases of XAMPP come with MariaDB except of MySQL. Basically the same but the php scripts have to be changed a little bit:

- mysql is changed to mysqli
- "$con"...
 

Attachments

  • Example_B4A_APP_Xampp.zip
    9.7 KB · Views: 4,310
  • persons.zip
    582 bytes · Views: 3,730
Last edited:

Make your app compatible with Android 5.0 devices

This is an old thread. It is not relevant if you are using newer versions of B4A.

In order for your current applications to run properly on Android 5.0 devices you need to:

1. Compile your...
 
Last edited:

[B4X] Corona Cases - Cross platform Example

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: 832
  • WearTest(wearable).zip
    5.5 KB · Views: 769
Last edited:

ABWearOS Library 1.0

Last edited:

Geofence - Monitoring a region in the background

Geofencing is an Android feature that allows your app to be notified when the user enters or exits a monitored region.

The nice thing about this feature is that your app doesn't need to run for...
 

Attachments

  • Geofence.zip
    15.6 KB · Views: 377
Last edited:

Android shake event with PhoneSensors

Using the phone accelerometer it is possible to handle shake events.
The problem is of course to decide if the stream of values represents a shake.

The Shake code module finds shake patterns and...
 

Attachments

  • Shake.zip
    27.9 KB · Views: 3,327

[B4X] Blockchain Example - Create Your Own Cryptocurrency (part 1/2)

Blockchain
A digital ledger in which transactions made in bitcoin
or another cryptocurrency are recorded chronologically and publicly.
In more general terms, it’s...
 

Attachments

  • blockchain example.zip
    2.8 KB · Views: 1,069
Last edited:

User's Guide

Last edited:

FirebaseAdMob - Rewarded video ads

Edit: Google AdMob does support rewarded ads without mediation.
You can use this unit id to test it: rewardAd.LoadAd("ca-app-pub-3940256099942544/5224354917")
Make sure to use FirebaseAdMob...
 
Last edited:

Android In-app Billing tutorial

Using standard Android search dialog with Basic4Android

Search is a core feature of Android. You can use a configurable standard search dialog for performing searches in your app. This search dialog can also be used within a Basic4Android App (with...
 

Attachments

  • SearchExample.zip
    8.1 KB · Views: 1,781
  • screenshot-1330509212682.jpg
    screenshot-1330509212682.jpg
    12.5 KB · Views: 2,134
Last edited:

How to make screenshots!

I think one of the easiest way is using Android SDK tools. I'll explain this method using Windows, but in Linux or Mac should be similar. This is what you have to do:
-Connect your mobile to...
 

Android Things - Getting Started

Last edited:
Top