Tutorials & Examples

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

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

[B4X] [BitmapCreator] Cross platform Falling Sand game



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,117
  • B4i_FallingSand.zip
    177.6 KB · Views: 903
  • B4J_FallingSand.zip
    24.6 KB · Views: 930
  • GameUtils.bas
    6.5 KB · Views: 1,021
Last edited:

Run B4A in Ubuntu 19.04

1) sudo apt install -y wine winetricks

2) winetricks dotnet452

3) wine B4A.exe

4) winetricks
install windows DLL or component
vcrun2010



5) right click icon B4A...
 

[B4X] [B4XPages] Barcode Reader



B4A + B4i barcode reader.

Don't miss:

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

Depends...
 

Attachments

  • BarcodeReader.zip
    183.5 KB · Views: 2,777
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
    28.8 KB · Views: 2,833
  • PinchZoomAndMove_1.45.zip
    115 KB · Views: 4,726
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:

Valid EAN13 Barcode String

Generate random valid EAN13 barcode string:
B4X:
Public Sub BarcodeEAN13() As String
    
    Dim brcod As String = Rnd(100000000,214000000)
    brcod = "950" & brcod  '<<< change the beginning 3...
 

[B4X] RSS Viewer using xCustomListView

Attachments

  • RSS Example.zip
    20.7 KB · Views: 1,234
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] AS ViewPager - Auto Play

In this example project you can see how to add an auto play feautre to the AS ViewPager.
...
 

Attachments

  • AS ViewPager Auto Play.zip
    10.2 KB · Views: 689
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:

Chat Mqtt Over Internet Free Source Code B4A/B4J

Attachments

  • B4JChatMqtt.zip
    8.3 KB · Views: 933
  • B4AChatMqtt.zip
    13.7 KB · Views: 1,037
Last edited:

Test Card Always Approves - Item unavailable in your country

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



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:

[B4X] AS_TabMenuAdvanced + ASPopupMenuAdvanced

This is a example how to use the AS_TabMenuAdvanced together with the ASPopupMenuAdvanced.

For this example you need the 2 libs...
 

Attachments

  • AS TabMenuAdvanced + ASPopupMenuAdvanced Example.zip
    455.1 KB · Views: 942
Last edited:

In App Billing - steps required in Google Console

This applies to Google Billing V4.

I was following the tutorial to add in app billing to my app and I found that it would not work in test...
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…