Tutorials & Examples

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

[B4X] Nested layouts

1587290214570.png


Lets say that we want to build a layout such as the above where the screen is split into two halves.

If we try to build this layout with a single layout file we will quickly meet a...
 

Attachments

  • NestedLayouts.zip
    12.8 KB · Views: 540

[Tip] Reset the manifest editor code to the default code

Use case: you downloaded an old example and you want to reset the manifest editor code so it will have the correct targetSdkVersion and theme.

Open the manifest editor, delete all text and save...
 

[B4X] [XUI] Drawing with B4XCanvas

B4XCanvas is the cross platform version of Canvas.

Steps to using B4XCanvas:

1. Initialize and pass the target view. In most cases it will be a Panel (or Pane). It must be a Pane in B4J.
2. Make...
 

Attachments

  • xSmiley_B4A.zip
    10.8 KB · Views: 1,110
  • xSmiley_B4i.zip
    5.3 KB · Views: 615
  • xSmiley_B4J.zip
    5 KB · Views: 810
Last edited:

TabStripViewPager - Better ViewPager

Attachments

  • TabStripExample.zip
    10.9 KB · Views: 3,460
  • TabStripViewPager_Library.zip
    30.5 KB · Views: 2,650
Last edited:

ContentChooser Example (select image at phone)

Here is a ContentChooser Example project to choose a image at phone for use in a activity with image view. it works with B4A 9.x and Android 8.1...
 

Attachments

  • ContentChooser Example.zip
    9.4 KB · Views: 2,479
Last edited:

Free Mini Course Android Development Environment Preparation (B4A)

Good morning,
I'd like to share the free "Android Development Environment Preparation" course.
This course helps prepare the B4A development environment to start developing Android apps.
I thank...
 

[B4X] B4X lib automatic build

Trying to find an automated way to build a B4X library, I found this method, I'd like to share for improvements and suggestions.
I'm using B4J as the development environment for the sake of...
 

QR Code - "Store" image/bitmap in a QR Code

See attached B4A project:

1. It takes an image (png or jpg) and convert it into a byte array
2. The byte array is converted into a Base64 String
3. The String is then converted into a QR Code...
 

Attachments

  • b4aQRImage.zip
    10.4 KB · Views: 461
  • core-3.3.2 (2).zip
    493.6 KB · Views: 464
Last edited:

💡 Retrieving 2 JSON data feeds from an online server - Shared module with B4i

Hello All
I might be a bit late to the show with this one, but I've been busy completing paid work. Hopefully new members will find this useful.

The B4i example can be found here...
 

Attachments

  • JSON.zip
    12.3 KB · Views: 391
  • Android-CoronavirusCOVID-19_V1.0.0.1.zip
    62.2 KB · Views: 413
Last edited:

Arduino / B4A

Hi all. Interfacing B4A with Arduino is really very simple and you can create any kind of application.
This is a simple example:



Code B4A:

B4X:
#Region  Project Attributes...
 
Last edited:

B4A Rapid book updated to B4A 9.80

I am happy to announce that the both the paperback and electronic versions of the B4A tutorial and reference book “B4A Rapid Android App Development using BASIC” by Wyken Seagrave have now been...
 

Video corso Preparazione ambiente di sviluppo B4i

ENGLISH:
Good morning,
I would like to share the free course "Preparing development environment for B4 IOS".
This course helps prepare the B4I development environment and the MAc to start...
 
Last edited:

[B4X] [XUI] ASTabMenu with xCustomListView Example

AS Tab Menu with xCustomListView.gif

Hello Forum,

in this Example i want to show you, how to use the ASTabMenu togehther with the xCustomListView, to handle a lot of Tabs without getting into layout problems...
 

Attachments

  • B4A Example with xCustomListView.zip
    7.8 KB · Views: 880
Last edited:

[B4X] SQL with Wait For

The new resumable subs feature, introduced in B4J v5.50, B4i v4.00 and B4A v7.00 (to be soon released), makes it simpler to work with large data sets with minimum effect on the program...
 

Firebase Realtimedatabase Create a room and messages inside

Hello,

I've been working with Firebase's realtimedatabase this week. There is no example yet of how to create rooms and send messages, but it is important for anyone who wants to make a chat in...
 
Last edited:

Android home screen widgets tutorial - part I

Edit: widgets are handled with receivers now. See the attached example.

This tutorial will explain how to implement your own home screen widgets (also named App Widgets).

It is important...
 

Attachments

  • HomeWidgets.zip
    24.6 KB · Views: 583
Last edited:

Select,Upload,Display,Delete image from Server

Hello everyone,

First of all, I want thank Erel, DonManfred and KMatle because a lot of the codes for them.

In this example (Select an image from gallery and display it, Resize the image, Save...
 

Attachments

  • php_Files.zip
    2.3 KB · Views: 1,067
  • MyImage.png
    MyImage.png
    56.2 KB · Views: 4,265
  • Screenshot_2017-12-19-13-57-22.jpg
    Screenshot_2017-12-19-13-57-22.jpg
    406.4 KB · Views: 3,557
  • complete.zip
    94 KB · Views: 1,217
Last edited:

How to create more Instances of the same AVD Emulator

Maybe this info can be useful to someone.
Normally from B4A AVD Manager it's not possible to start more instances of the same AVD normally.
We get a Warning that executing many times the same...
 

Tutorial Android and Raspberry Debian in BT

Hi all. In this example we have Raspberry Pi Rasbian and Android App ( communicate via BlueTooth ).

Through Android we give the command to access and turn off/on the LED, and from the Raspberry...
 

[B4X] Localizator with CSV files

For the first time I try to make my apps multilingual and found this very useful helper. But I prefer to use CSV files (not excel) for the translations. So I combined it with this...
 

Attachments

  • B4XLocalizatorCSVTool.zip
    11.6 KB · Views: 397
Last edited:
Top