Tutorials & Examples

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

Read QR code from file

Hello team,

If you want to scan QR code from a file (Bitmap or pdf) you can try this code:
You need PDFium and Barcode Reader

B4X:
'Code module
'Subs in this code module will be...
 

How to change the XML element in file and save it, using XOM library

I learned to read XML file, thank you all! Now I need to learn how to change XML elements and save it. file. For example is XML file

<?xml version="1.0" encoding="UTF-8"?>
<group>...
 

[B4X] Supabase - Storage Files


This is a very simple tutorial on how to use the storage file options.

Upload File...
 

DJI app java object to start video recording

This starts recording video with your dji app

B4X:
'put this in process globals

   Dim AircraftInstance As JavaObject
  

    Dim CameraInstance As JavaObject


'Put this in AfterAircraftConnected...
 

Integrating In App Purchase in B4A Platform

2640091000001671191.20201113055034.96000607556292075557033905422838:50511207092434:2800:72DA040886606D8CEE17E248BA...
 

[B4X] FirebaseFirestore - ChatApp Demo

Happy New Year!!!!
Here is a chat demo of FirebaseFirestore with Android, Windows & iOS

 

Attachments

  • Project.zip
    196.9 KB · Views: 128

Check if the application is running on a Chromebook

If you want to check if the application is running on a Chromebook (for example to do some specific GUI reconfiguration to run in a resizable Window), you can use the following routine.
Hope it...
 

integrating huawei map kit into the B4A platform

the huawei map kit will hopefully be integrated into the B4A soon..

i have opened a topic here, and huawei teams will provide support...
 

[B4X] get fav icons from a website

Word wrap paragraph text to specified maximum characters line length

We needed to do some word-wrapping re: this thread and figured I may as well post my tawdry effort in case anybody else is looking for ideas 🍻 or code to hang s**t on 🤣

It has some niceish...
 
Last edited:

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

Book for programming Pi, Arduino and more applications with B4A

Hi all,

I see a very nice book for programming PI, Arduino and more with B4A

I hope somebody like this...
 

The effect of pressing a button

While I'm new. I can not find a full and detailed example. How to make a beautiful effect for button when I click button. I like using a gradient fill please. I did not use in my work designer...
 
Last edited:

Help Management for Application

Hello hope your'e well.
Apps are getting more and more complicate and to work with the user needs a manual. This examples shows how you can add an help dialog to your B4XPages Project. The help...
 

Attachments

  • Screenshot_20210713-125404.png
    Screenshot_20210713-125404.png
    173.5 KB · Views: 573
  • Screenshot_20210713-125410.png
    Screenshot_20210713-125410.png
    17.5 KB · Views: 496
  • pdfHelpExample.zip
    263.6 KB · Views: 401

B4A Paperback on sale at 40% discount

AdMob mediation with Meta - Facebook and 20+ other networks (not tested)

This tutorial assumes that you already have FirebaseAdMob2 implemented in your app.

Implementation is tested in native Android app, not in B4A. You can test it if you want.

You need to...
 
Last edited:

Simple previous-next example

Simple previous-next example

B4X:
#Region  Project Attributes
    #ApplicationLabel: Example
    #VersionCode: 1
    #VersionName:
    'SupportedOrientations possible values: unspecified, landscape...
 

Attachments

  • Example.zip
    299.9 KB · Views: 387

Data Safety Admob

Hello team,

If you recieved an email about submiting Data Safety form at Google Play Console and your apps using Admob, you can watch this video to guide you.

More infos you can find...
 

Example of adding and calling B4X menu items

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