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,160
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,049

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-Bridge source code

B4A-Bridge is made of two components. One component is running on the device and the other is embedded in the IDE.
The device side is the server side. It waits for connections and when a...
 

Attachments

  • B4A-Bridge-source.zip
    29.5 KB · Views: 733
Last edited:

Webview & File.DirAssets - Enough Already

UPDATE: AFTER READING THIS POST, PLEASE REFER TO POST#5 FOR A BETTER SOLUTION (AT LEAST, IN MY OPINION).
a code module provided by member Ivica Golubovic allows you to continue using...
 

Attachments

  • assets.zip
    82.9 KB · Views: 521
Last edited:

Capture volume keys events while app is in the background

Could some Java guru kindly convert the following codes into B4A code for me, if possible, please? I would greatly appreciate it!

I'm looking for a reliable solution as a background service...
 

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] AS WheelPicker PlusMinus Example

IMG_4683.jpg

This is an example project to demonstrate what is possible with the beautiful ASWheel. From version 2.0 it is possible per function animated (also possible without animations)...
 

Attachments

  • AS WheelPicker PlusMinus Example.zip
    180.2 KB · Views: 331
Last edited:

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:

Exploring the b4x UltimateWebView with SithasoDaisy, #TailwindCSS + #DaisyUI UI Toolkit

Hi

This seeks to document my experiences of the UltimateWebView and the newest Sithaso Holdings UI kit, named SithasoDaisy, a TailwindCSS UI kit built on top of BANano + B4x.

Well, this is my...
 

LatLong To Timezone

Hi,
I was looking for a code to know the timezone information from Latitude and Longitude coordinates and I found the code here LatLongToTimezone but it is written in java so I used it in...
 

Attachments

  • B4A_TimezoneMapper.zip
    434.5 KB · Views: 205

[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: 743
  • B4i_FallingSand.zip
    177.6 KB · Views: 550
  • B4J_FallingSand.zip
    24.6 KB · Views: 604
  • GameUtils.bas
    6.5 KB · Views: 624
Last edited:

Running B4A and B4J under Linux with wine - fully functional

I have just managed to install B4A and make it run (including B4ASdkManager) on my Xubuntu 18.04 and, since I have lost two days and one night putting things together, I thought it will be a good...
 
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] [B4XPages] Barcode Reader

1595341203504.png
i_view64_HkncBfNNKe.png


B4A + B4i barcode reader.

Don't miss:

- #PlistExtra in B4i.
- Manifest code + #AdditionalJar in B4A

Depends...
 

Attachments

  • BarcodeReader.zip
    183.5 KB · Views: 1,432
Last edited:

[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,366
  • PinchZoomAndMove_1.45.zip
    115 KB · Views: 4,257
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] WebView + CKEditor (rich text editor)

1628407653890.png


This is a cross platform example that adds CKEditor rich text editor using WebView: https://ckeditor.com/ckeditor-5/
Make sure to read CKEditor licensing and pricing...
 
Last edited:
Top