Tutorials & Examples

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

FusedLocationProvider + Resolution Dialog

** This is the only option to enable location services from inside your app. **

Example was updated and is based on B4XPages.
Don't miss:

1. ShowResolutionDialog sub that is added to Main. It...
 

Attachments

  • Project.zip
    14.6 KB · Views: 1,763
Last edited:

BLE nRF Connect pre-BLE2 problem solving

It is surprising how often the basics get missed, when embroiled in heat of battle of programmer vs hardware, operating system, complex apis and libraries, etc.

I have found that whenever my BLE2...
 
Last edited:

[B4X] [B4XPages] GoogleMaps example

1594642169087.png


Example of showing a Google map, in a cross platform B4XPages project. The APIs of the three GoogleMaps libraries are quite different from one another, so we need to use platform...
 

Attachments

  • Project.zip
    10 KB · Views: 2,542

New online AI Regex Generator!

Check this out!

sheetai.app which helps use ai in google sheets, just ask it and done!

Quick Demo:



Tutorial:

 
Last edited:

B4A Book Now Covers Version 11.20

cover-295.jpg


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

[B4X] [BitmapCreator] Cross platform Falling Sand game

SS-2018-06-19_11.20.27.png


The main challenge here is the performance. All particles are updated if needed and redrawn every cycle.

The Particles...
 

Attachments

  • B4A_FallingSand.zip
    25.6 KB · Views: 1,016
  • B4i_FallingSand.zip
    177.6 KB · Views: 810
  • B4J_FallingSand.zip
    24.6 KB · Views: 840
  • GameUtils.bas
    6.5 KB · Views: 920
Last edited:

Run B4A in Ubuntu 19.04

1) sudo apt install -y wine winetricks

2) winetricks dotnet452

3) wine B4A.exe
Screenshot from 2020-02-22 22-40-04.png

4) winetricks
install windows DLL or component
vcrun2010
Screenshot from 2020-02-22 22-33-34.png



5) right click icon B4A...
 

[B4X] Using/running B4A and/or B4J on 64 bit Linux Mint 20.2 Cinnamon with 64 bit Wine

Pinch Zoom and Move View tutorial

[Class] Pinch Zoom and Move View

I had the need for my purposes to do the Pinch Zoom in contemporary Move to a View, now I put my code available to anyone who might be in need, just to get...
 

Attachments

  • Screenshot_2012-11-02-20-02-13 (ridotta).jpg
    Screenshot_2012-11-02-20-02-13 (ridotta).jpg
    28.8 KB · Views: 2,654
  • PinchZoomAndMove_1.45.zip
    115 KB · Views: 4,603
Last edited:

App Bundle - Steps to updating Existing App (apk to aab)

This Tutorial is for those who already have an existing application in the play store that is APK and want to switch to App Bundle (AAB) which will become compulsory in August 2021.

Steps for...
 
Last edited:

[B4X] JSON crack - Visualize your JSON as a diagram

Understanding Network security configuration

Every developer must understand this article if developing any kind of network communication app.

Android os recent versions put end apps users privacy at the heart of its platform, the network...
 

Now you can debug android app directly under Windows11

Intel's Bridge technology will allow Android apps to run natively on Windows 11, now Microsoft released the beta version。

1. download windows11 from...
 
Last edited:

? [B4X] [XUI] [B4XPages] Using B4A GPS to create a BASIC weather app - Newer developers

Hello All
Here we have an simple example on how you use your Android device GPS in conjunction with OpenWeather API, this is just a simple example and can obviously be changed and updated by...
 
Last edited:

Test Card Always Approves - Item unavailable in your country

Google never seizes to surprise us and its latest miracle is the following:

TestCardsNotAvailable.jpg


In order to fix this no matter if you have an EmailList set with the testers I have done two things. I do...
 
Last edited:

Api Levels

Searching the internet I came across this site that cumulates all the necessary data for the B4A developer:

 

Using fixer.io to get current Currency rates

This Tutorial is how to use the free service from fixer.io
in your own apps.

Fixer.io is a free JSON API for current and historical foreign exchange rates published by the European Central...
 
Last edited:

[B4X] [DSE] Designer Script Extensions

The soon to be released versions of B4A, B4i and B4J include a new feature named: designer script extensions. The new feature allows calling B4X code from the visual designer scripts.
Note that...
 

Attachments

  • DSExample.zip
    182.8 KB · Views: 1,247
  • DSExampleCLV.zip
    187.6 KB · Views: 1,113
  • DSExampleNumpad.zip
    18.8 KB · Views: 1,098
  • DSExampleToolbar.zip
    123.2 KB · Views: 1,064
  • DesignerUtils.b4xlib
    3.7 KB · Views: 981
Last edited:

✅ [B4X] [XUI] [B4XPages] B4A PreoptimizedCLV lazy loading from SQLite and CSV - Newer developers

Hello to you all,
Welcome to Sheldon Coopers and Amy Farrah Fowlers fun with flags ;)

Here is a simple example on using B4XPages with both an SQLite database and also a CSV file with multiple...
 
Last edited:

In App Purchases Setting Tutorial - New Google Play Console - Accurate as of 2020-09-26

Hey everyone,

This is a tutorial on how you can add In App Purchases to your Android App in the New Google Play Console.

1) Add GooglePlayBilling library in your project and the following code...
 
Last edited:
Top