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:

[Linux] [B4X] Wine Installer

Attachments

  • Screenshot3.png
    Screenshot3.png
    87.8 KB · Views: 1,001
  • Screenshot4.png
    Screenshot4.png
    94.7 KB · Views: 620
Last edited:

FirebaseAuth - Error Fix!

hi,

after making many apps and also using firebaseauth quite frequently i struggled to use it in my latest app and it was frustrating.

it didnot matter what i did it just did not work and all i...
 
Last edited:

R8 Dexer & Optimizer

The Java compiler generates Java bytecode. The bytecode is then converted to an Android specific format named DEX. This step is done by default with a tool named D8.

There is an...
 

Embedding native android views or widgets in b4a

This is done by inflating xml files that are intended for native Android apps. Since the xml code contains the view, it will be shown (and can be manipulated) in b4a code.
Let's take the following...
 

Attachments

  • swipetorefresh.gif
    swipetorefresh.gif
    272.9 KB · Views: 107
Last edited:

B4Xgoodies_from_walt61 Online

Well,

As JamesGreaves requested,
"So do you not think it would be of value to have even something like @walt61 has created but online?"...
 
Last edited:

🚗 How to Get the Google Maps and OpenRouteService API Keys

Hello everyone 👋
This example uses two different services:
🗺️ Google Maps SDK for Android → displays the map
🚗 OpenRouteService → calculates the driving route
So before running the example, you...
 

Attachments

  • Rute.zip
    14 KB · Views: 36
Last edited:

Stack On A Budget

[B4XDaisyUIKit] A curious Native DeclarativeUI Experiment

Hi gang

@Maxcfgos post about DeclarativeUI really impressed something in me, less code with great impact and no worries about left, top, height, width, addview when placing components...
 

[B4X] Optional sub parameters

This is a new feature that will be added to the B4X tools.

Optional sub parameters are parameters that are declared with a default value. If an optional parameter is omitted when the sub is...
 

MySteps - Step Counter App

GitHub: https://github.com/pyhoon/MySteps

My girlfriend always complain when I said I have walked a long way on the whole day.
She always think I am lazy and don't like to exercise.
I don't...
 

Attachments

  • MySteps.zip
    16.3 KB · Views: 103
  • MySteps_v1.zip
    19.4 KB · Views: 130
Last edited:

[Tool / Guide] B4X Master Studio – Interactive Training Manual & Visual Designer Simulator

Hi Everyone,

I would like to share a project created for both newcomers and seasoned developers in the B4X ecosystem: B4X Master Studio.

It is an interactive web-based training manual and visual...
 

Beginning Native Android App Development with B4XDaisyUIKit - B4XPages

Hey gang!

I'm excited to showcase the first video tutorial in B4XDaisyUIKit, a UI framework wrapper for B4A that brings modern Tailwind CSS and DaisyUI-inspired styling right into our...
 

Beginning B4A App Development - Built In UI Controls

Hi gang

B4A Github Repo

For anyone beginning with b4a, they would want to know what UI components are available that come built in with b4a and can be used right out of the box?

So Iv'e...
 
Last edited:

[B4XDaisyUIKit-Skills] How does it actually work?

Hey gang!

TLDR; B4XDaisyUIKit-Skills is a companion skills package for the B4XDaisyUIKit, a DaisyUI + TailwindCSS based component framework for b4a.

​

Introduction: The...​

 

[B4XDaisyUIKit-Skills] - Creating a Sleep Dashboard Home Screen with B4XDaisyUIKit

Hi gang!

1. We have been working on the B4XDaisyUIKit - a b4a component framework based on DaisyUI and Tailwindcss.
2. We then created B4XDaisyUIKit-Skills, a skills set for AI to AI Engineer B4A...
 

Attachments

  • SIMULATION-REPORT.pdf
    10.4 KB · Views: 166
Last edited:

Handle the soft keyboard with the IME library

Android has very good support for custom input method editors (IMEs).
The downside for this powerful feature is that interacting with the soft keyboard can be sometimes quite complicated.

This...
 

Attachments

  • IME_Example.zip
    14.8 KB · Views: 146
Last edited:

B4A EMV NFC Credit Card Reader - Free Source codes

Hello Everyone !

Below is a fully working B4A EMV NFC Credit card reader.
It works on :
1- Visa Card (A000000003)
2- MasterCard (A000000004)
3- Maestro (A000000005)
4- American Express...
 

[B4X] Program from everywhere even while being on the road - It can be done already

I was thinking how can I realize what is mentioned bellow for helping a friend with no computer for now, without waiting for it to happen (if ever - no offense @Erel but I know you are busy)...
 
Last edited:

[B4XDaisyUIKit] Beautiful, High-Performance PDF Rendering Made Simple (100% Beginner Friendly!)

Hi B4X Community,

Rending PDFs natively on Android can be a daunting task, requiring complex wrappers, native .so files, and tedious permission configurations. For years, the community has relied...
 

✨ [B4XDaisyUIKit] Using the ShineButton Library: Bring Your Buttons to Life with Stunning Shine Effects! ✨

Hello B4Xers!

This beautiful animation control is originally a lightweight Android UI library created by ChadCSong on GitHub. It adds a "shining" effect to buttons similar to...
 
Top