Tutorials & Examples

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

Intents and receivers

With the new imodules that allow you to work better with the intent and receivers, it is necessary to develop some examples of how to use them (even before it could be done but not in...
 

Attachments

  • device_filter.zip
    413 bytes · Views: 225
  • IntentUSB.zip
    10.6 KB · Views: 231
Last edited:

Very simple GPS Program

Hi guys,

how to use :

1. copy the starter into your project

B4A:
    If Starter.GPS1.GPSEnabled = False Then
        ToastMessageShow("Please enable the GPS device.", True)...
 

Attachments

  • GPSbyJCD.zip
    7.9 KB · Views: 364
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: 522
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...
 

[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: 206

[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,443
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: 882
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: 317
Last edited:

FREE Source Code's !

Hi all,

i have updated my webpage and decided to add a tutorial section.

My first tutorial is a simple calculator (+,-,*,/) there is a video tutorial incl. Source code on my site.

I will upload...
 

Attachments

  • t1calc.zip
    3.7 KB · Views: 3,158
Last edited:

Chat Mqtt Over Internet Free Source Code B4A/B4J

Attachments

  • B4JChatMqtt.zip
    8.3 KB · Views: 473
  • B4AChatMqtt.zip
    13.7 KB · Views: 561
Last edited:

[B4X] AS_TabMenuAdvanced + ASPopupMenuAdvanced

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

For this example you need the 2 libs...
 

Attachments

  • AS TabMenuAdvanced + ASPopupMenuAdvanced Example.zip
    455.1 KB · Views: 537
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...
 

[B4X] AS PopupMenuAdvanced - ComboBox

IMG_2058.jpg
RPReplay_Final1636584250.gif


This is a small example to demonstrate what is possible with the beautiful view...
 

Attachments

  • AS PopupMenuAdvanced ComboBox.zip
    73.9 KB · Views: 1,114
Last edited:

Push messages with Firebase and B4A: Some additional hints and a working example

Hi,
I played around with push notifications based on Firebase Cloud Messaging (FCM).
I followed the tutorial at...
 
Last edited:

Creative UI/UX Designs + Source Code

Well, from today I am here to help you create more beautiful applications.
B4X Family is a wonderful yet very simple tool for designing functional and beautiful applications
I have been acquainted...
 

Attachments

  • 1.profilePagerPanel.zip
    142.7 KB · Views: 1,056
Last edited:

Native Camera + Crop - Native Galery + Crop

hi i make a simple code using the google and intent *-*

This code is very very simple and call the native crop later save the image
with native camera or galery

B4X:
#Region  Project Attributes...
 

Attachments

  • MEUS EXEMPLOS.zip
    502.6 KB · Views: 6,778
Top