Tutorials & Examples

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

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.



The table is...
 

Attachments

  • TableExample.zip
    5.7 KB · Views: 6,672
  • TableExample1.1.zip
    12.2 KB · Views: 7,049

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).

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

Eyes follow example code

Hi all.
Here is a simple example of how make a eyes folow the touch on a panel.





another example

a source is attached
 

Attachments

  • move.zip
    100.4 KB · Views: 468

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: 898

[B4X] [XUI] CustomListView with animated header

Attachments

  • B4A_CLV_Header.zip
    14.3 KB · Views: 1,239
  • B4i_CLV_Header.zip
    7.5 KB · Views: 703
Last edited:

Catch Webview Item's Longclick without late Javascript injection

Sample project to intercept clicks and longclicks on images or text portions in a webview.

The test project was created, because it became necessary to find a suitable solution from the very much...
 

Attachments

  • WebViewLongClick_03.zip
    242.2 KB · Views: 475

MapsDecodePolyline

Hello!

As already told in another thread, i'm working on a navigation app using Google Maps API in combination with Google Directions http-requests for routing.

The http-Requests looks as...
 

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,238
  • B4A_IO_Adafruit.zip
    8.1 KB · Views: 1,648
  • B4i_IO_Adafruit.zip
    3.6 KB · Views: 912
  • B4J_IO_Adafruit.zip
    2.4 KB · Views: 1,049
Last edited:

[B4X] Input dialogs with XUI Views



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,208
  • B4J Dialogs.zip
    3.7 KB · Views: 1,774
  • B4i Dialogs.zip
    62.4 KB · Views: 1,298
Last edited:

[B4X] B4XTable - Adding custom navigation buttons

Depends on B4XTable v1.01+



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,246
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: 478
  • jackson-core-2.7.4.jar
    247.1 KB · Views: 479
  • trialcheck.zip
    347.4 KB · Views: 447
Last edited:

Simple example B4XDrawer sliding drawer class with materialicons and fontawesome icons

Good afternoon, I contribute to the community with a small example of the class B4XDrawer with material icons and fontawesome icons.



Thanks to the whole...
 

Attachments

  • Simple_example_B4XDrawer.zip
    12.4 KB · Views: 1,022
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: 902
Last edited:
Cookies are required to use this site. You must accept them to continue using the site. Learn more…