Tutorials & Examples

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

Updating an embedded DB

A common task we face while enhancing our apps is the need to update the structure of a running DB.
This is relatively easy if you know for sure that your users will all go from version 1 to...
 

Connect Android to MySQL Database Tutorial

A new more powerful framework is now available: jRDC2.

This tutorial explains the basic concepts required for creating a connection between Android device and a remote server. In this...
 

Attachments

  • MySQL.zip
    8 KB · Views: 17,792
Last edited:

Controlling Sonoff S20 smart power plugs [B4X] [Home Automation]

Android SMB / CIFS tutorial

[B4X] [B4XPages] Pleroma / Mastodon Client

Roughly speaking, Mastodon is an open source, distributed, social network a bit similar to Twitter:

Pleroma is a lightweight implementation of Mastodon with some...
 
Last edited:

Integrating In App Purchase in B4A Platform

2640091000001671191.20201113055034.96000607556292075557033905422838:50511207092434:2800:72DA040886606D8CEE17E248BA...
 

[B4X] [B4XPages] Firebase Push Example

Attachments

  • Push.zip
    7.3 KB · Views: 2,170

intent for beginner - messages between apps

Part 1

1- Intent is exactly a Specific Message between Android Apps.
Building this message is simple in B4A:
B4X:
dim intent1 as intent

2- Any message (ie: intent) has a specific purpose...
 

EasyDeviceInfo (with inline Java Code)

It incorporates this Github project via inline java code. The project reports a whole lot of information about your device and write the results to the B4A log:

B4X:
** Activity (main)...
 

Attachments

  • b4aEasyDeviceInfo.zip
    15.5 KB · Views: 1,198

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: 10,168
  • ExcelLibrary.zip
    13.1 KB · Views: 9,473
Last edited:

[B4X] B4XPages enhanced example

In case anyone is interested I attach a modified version of Erels' ThreePagesExample for B4A only. It demonstrates the following enhancements.

1) B4XMainPage requests a Runtime permission.

2)...
 

Attachments

  • B4XPagesTest-B4A.zip
    40.8 KB · Views: 1,731

Google: Here are 4 reasons your Android app will get booted from the Play Store

[B4X] Sharing layouts between platforms

[Article] Demystifying the new Play In-App Review

@Pendrush recently introduced its wrap of the In-App Review Library.
After a rework, the solution now works great...
 

[B4X] Projects Templates

This is a new feature. It is included in B4J v8.50 and B4i v6.80 (betas) and will be included in the next versions of B4A and B4R.

1594122248131.png


This is a very simple and useful feature. When you...
 

Attachments

  • B4XPages.b4xtemplate
    9.6 KB · Views: 1,540
  • B4XTurtle.b4xtemplate
    3.3 KB · Views: 1,409

Slow Motion video recording using CamEX2

Here is the example of SlowMo video capture using Camera2 API and CamEX2 class. This is the code for recording slow-motion video which you can find at the bottom of CamEX2 Class of attached...
 

Attachments

  • CamEx2_SlowMo_Video.zip
    16.9 KB · Views: 830
Last edited:

Do not start a B4A project before you read the guides

After reading so many threads from new 'member' s , I feel that we have to make humble request to all new members :

Do not start a B4A project before you read the guides....
 

Code Obfuscation

This tutorial is relevant for B4A and B4J.
During compilation B4A generates Java code which is then compiled with the Java compiler and converted to Dalvik (Android byte code format).
There...
 
Last edited:

Android Bluetooth / BluetoothAdmin Tutorial

Better implementation based on B4XPages:
Tutorial was rewritten in April 2018.
We will create...
 

Attachments

  • Bluetooth.zip
    12.4 KB · Views: 7,515
Last edited:

[B4X] B4XImageView - ImageView + resize modes

B4XImageView is a new custom view, added to XUI Views v2.40.

It adds several useful resize modes to the standard ImageView:

1597820737069.png


(Images source...
 

Attachments

  • Example.zip
    352.5 KB · Views: 3,582
Top