Tutorials & Examples

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

[B4X] Documentation Booklets

The B4X documentation booklets are available in PDF format, Download Link.
All files are included in the zip file in the link above, pdf booklets and all the source code.

You can also...
 
Last edited:

[B4X] Features that Erel recommends to avoid

Many things have changed in B4X and also in the underlying platforms. I will try to list here all kinds of (old) features that have better alternatives.
B4X is backward compatible so these...
 
Last edited:

[B4X] "Code Smells" - common mistakes and other tips

"Code smells" are common patterns that can indicate that there is a problem in the code. A problem doesn't mean that the code doesn't work, it might be that it will be difficult to maintain it or...
 
Last edited:

Navigation Side Menu

I was playing around with the ListView and found it a great use for a menu system.
Following along as much as possible with the design concepts defined on a Material.io design web site.

See...
 

Attachments

  • NavigationMenuOptimized.zip
    14 KB · Views: 538

Receivers and Services in 2023+

In the early days of Android services were simple to use and powerful. They allowed doing all kinds of things in the backgrounds with very few restrictions. That's not the case with newer versions...
 
Last edited:

App Bundle - Publishing NEW apps using AAB to play store with New keystore

There is an increasing concern about how to publish apps using the app bundle (aab) format. I will try as much as possible to simplify the steps for you.

IMPORTANT UPDATE IN POST...
 

Attachments

  • 1616942914153.png
    1616942914153.png
    21 KB · Views: 520
  • 1616943200855.png
    1616943200855.png
    30 KB · Views: 479
  • 1616944045529.png
    1616944045529.png
    106.8 KB · Views: 539
Last edited:

B4X Ui/Ux 👨‍🎓👩‍🏫

Ui max_co

Hello friends
👨‍💻👩‍💻
We are here to show the world the power and beauty of B4X-built apps

New post

17-Drawer Ui (Figma)...
 

Attachments

  • ddfs.jpg
    ddfs.jpg
    218.1 KB · Views: 489
Last edited:

Widget Layout (Resizable, Adaptive)

Not sure if this can be considered a Tutorial, my first attempt.
Lately I started to play with Widgets, mostly for curiosity.
The main problem I encountered was how to design the Layout to make it...
 

Attachments

  • Widget Test.zip
    153.3 KB · Views: 83
Last edited:

Android database encryption with SQLCipher library

Attachments

  • SQLCipher.zip
    37.2 KB · Views: 98
Last edited:

Social Network created by B4A (Chat included)





After searching all over the forum, I noticed that there are no examples that speak of a Social Network, so I decided to write one.

This example below...
 

B4A Social Network Version 1.30

B4A Social Network Version 1.50

[B4X] TextEditor - Save and load external files

This is a B4i and B4A example, which demonstrates various external files related tasks.

1626784777442.png
1626784790557.png


The behavior is not exactly the same as the platforms capabilities and behavior...
 

Attachments

  • TextEditor.zip
    184.2 KB · Views: 840
Last edited:

Create a B4X library with Android Studio - Step by step

Attachments

  • 1642537591575.png
    1642537591575.png
    9.2 KB · Views: 449
  • 1642537591596.png
    1642537591596.png
    47 KB · Views: 386
Last edited:

Conversion of B4A to B4XPages

Introduction

The conversion of the first of my B4A Apps to the newer B4XPages structure was not trivial and involved over 20 hours of research, overcoming misunderstandings, and finding...
 

Attachments

  • Section 1-2.pdf
    469.4 KB · Views: 685
  • Section 3 Step 1-11.pdf
    501.9 KB · Views: 590
  • Section 3 Step 12.pdf
    488.1 KB · Views: 498
  • Section 3 Step 13.pdf
    456.3 KB · Views: 651
  • Section 3 Step 14.pdf
    450.6 KB · Views: 492
  • Section 3 Step 15-16.pdf
    457.5 KB · Views: 533
  • Section 4-5.pdf
    393.4 KB · Views: 470

Athom Pre-Flashed TASMOTA Infrared Remote Controller with B4X (Home Automation)

How to Install and Run Android Apps Natively on Windows 10 and 11 with WSABuilds

Hello B4X community! If you've ever wanted to use Android apps directly on your Windows 10 or 11 PC, you're in luck. I'll provide you with a detailed tutorial on how to achieve this using...
 

Attachments

  • 2023-12-25_172950.png
    2023-12-25_172950.png
    51.9 KB · Views: 512
  • 2023-12-25_173027.png
    2023-12-25_173027.png
    54.6 KB · Views: 424
  • 2023-12-25_173126.png
    2023-12-25_173126.png
    50.1 KB · Views: 421
  • 2023-12-25_173309.png
    2023-12-25_173309.png
    153.6 KB · Views: 460

Tips or Tricks for using Android Emulator

I want to share a few tricks when using the Android Virtual Device or Emulator.

1. Increase font and icon size
Go to Settings (gear icons) from drawer/desktop/slide down menu and choose...
 
Last edited:

ExoPlayer - full screen feature

1627205322656.png



1627205353669.png


This example demonstrates how you can add a full screen button to a video. Clicking on the button, starts a new landscape activity and it then uses the native...
 

Attachments

  • Project.zip
    16.3 KB · Views: 121
Last edited:

[B4X] Public variables, custom types, ...

Last edited:

Convert a big Activity project to B4XPages

For years is scare me to convert a big project from Activities to B4XPages, mainly because the app is only for Android (and I don't have plans to IOS or desktop), but in several issues the answer...
 

How to change Default Android Emulator Skins (AVD) with Device Skins

Last edited:

Dropbox SDK V2 - Authentification

This Tutorial belongs to the Dropbox SDK V2 - Java Library

See this thread for preparing your app to use this Library.
Especially the Manifest-Entry...
 
Top