Tutorials & Examples

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

Facebook login no event raised fix

Hi,

If your Facebook and firebase configurations are all ok but the auth event is not raising or if you are getting An account already exists with the same email address but different...
 
Last edited:

[B4X] - Google sheets and localizator

Hi everyone,

there is a new way to create the localizator class csv file and it is as easy now as it could never be in the past. Just watch the following video:

(23-6-2019)

In order...
 
Last edited:

BlueTooth Printing via SPP

I finally have reliable, stable printing to a blue tooth printer (Citizen CMP-10 and CMP-20) from my Samsung 5570L Galaxy Mini Android Device running v2.3.6

Attached is a skeleton project...
 

Attachments

  • BTPrint.zip
    8.7 KB · Views: 6,836
Last edited:

Creating a table view based on ScrollView

A much improved version is available here.

You can use the code in this example to show data in tabular form.

table_1.png


The table is...
 

Attachments

  • TableExample.zip
    5.7 KB · Views: 6,868
  • TableExample1.1.zip
    12.2 KB · Views: 7,227

Android Wear Install App via Bluetooth

Hello, i see here, that many people have problems to install there wear app to his watches.
I list the steps that are needed so that you can quickly look up when you need it.

Phone:
-install the...
 
Last edited:

Load HTML to Label

Last edited:

Compiling through Google Drive Filestream

Hi,

Last couple of days I have been testing compilation of B4A programs through Google Drive Filestream. Although it is a little bit slower it has a lot of advantages to do this:

- your OpenJDK...
 

B4ABuilder / B4JBuilder - Command line compilation

B4A v4.30 includes a new tool named B4ABuilder.exe (and B4J includes a similar tool named B4JBuilder.exe).

This tool allows you to compile your projects from the command line. This can be useful...
 
Last edited:

Using and understanding Pointers and References

Yes, you heard me right! It is possible to utilize the pointers and references (at least in terms of behavior) in B4X Java-based languages (B4A and B4J). :D

There is a lot to explain about...
 
Last edited:

Android Things - Getting Started

Last edited:

[B4X] [etp] Forms & User Input video tutorial


More videos: https://www.b4x.com/etp.html

The example app is attached.
Note that the correct library that needs to be checked, except of B4XPreferencesDialog, is XUI Views...
 

Attachments

  • User Input.zip
    2.7 KB · Views: 1,051

[B4X] [XUI] CustomListView with animated header

Attachments

  • B4A_CLV_Header.zip
    14.3 KB · Views: 1,394
  • B4i_CLV_Header.zip
    7.5 KB · Views: 827
Last edited:

targetSdkVersion 28 (Android 9.0)

Starting from August 2019 for new apps and November 2019 for updates, Google Play requires apps to set targetSdkVersion to 28.

The tutorial was updated with information related to API level 28...
 

[Example] Add OCR features to your Android application

This example demonstrates how you can use an OCR web service to recognize text in camera images.

The program allows you to take a picture and then send it to OCRWebService.

OCRWebService...
 
Last edited:

[B4X][IoT] - Monitor the home temperature with Adafruit IO

Adafruit IO is a cloud service built for IoT solutions. It provides two interfaces: MQTT and REST API. It is very simple to use it with B4X as demonstrated in this example.

It is more than...
 

Attachments

  • B4R_IO_Adafruit.zip
    1.1 KB · Views: 1,378
  • B4J_IO_Adafruit.zip
    2.4 KB · Views: 1,197
  • B4i_IO_Adafruit.zip
    3.6 KB · Views: 1,046
  • B4A_IO_Adafruit.zip
    8.1 KB · Views: 1,818
Last edited:

[B4X] Input dialogs with XUI Views

SS-2019-01-06_17.52.32.png


B4XDialog from XUI Views library can show simple dialogs, template based dialogs and custom dialogs.

The example...
 

Attachments

  • B4A Dialogs.zip
    10.5 KB · Views: 5,664
  • B4i Dialogs.zip
    62.4 KB · Views: 1,520
  • B4J Dialogs.zip
    3.7 KB · Views: 2,004
Last edited:

[B4X] B4XTable - Adding custom navigation buttons

Depends on B4XTable v1.01+

SS-2019-02-06_15.24.42.png


It is very simple to add your own navigation features.

Code:
B4X:
Sub btnNext_Click...
 

Attachments

  • B4XTable With Navigation Buttons.zip
    59.9 KB · Views: 1,432
Last edited:

Check Trial Period using Dropbox (new with admin tool)

Check Trial Period using Dropbox (first version, improved version in Post #2)

Hello,

I have tried to find a solution to solve the control of the trial period of an app using the...
 

Attachments

  • encryptpw.zip
    297.9 KB · Views: 617
  • jackson-core-2.7.4.jar
    247.1 KB · Views: 581
  • trialcheck.zip
    347.4 KB · Views: 569
Last edited:

Android InApp Purchase Tutorial + Source Code

Hi,

in this tutorial i will show you how to add an in app product to your android app.

There is an official tutorial by @Erel so you should also check that out...
 

Attachments

  • InApp.zip
    3.2 KB · Views: 1,035
Last edited:

Auto restart an Android Application after a Crash

Top