Tutorials & Examples

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

[B4X] Public variables, custom types, ...

Last edited:

IconKitchen - Generate App Icons

Hi

In case you are looking for this tool. Generate your app icon for mobile devices. It uses, clipart, text and images.

 

[B4X] Program from everywhere even while being on the road - It can be done already

I was thinking how can I realize what is mentioned bellow for helping a friend with no computer for now, without waiting for it to happen (if ever - no offense @Erel but I know you are busy)...
 
Last edited:

[B4X] Supabase - Database Joins


In the following example I make a join into the "public.users" table and need the column...
 
Last edited:

[B4X] AS Settings with AS BottomDatePicker

Attachments

  • AS Settings with AS DatePicker.zip
    179 KB · Views: 34
Last edited:

Sound Meter

Hello.
the project was prepared using only the libraries in the forum.

live line chart #Johan Schoeman...
 

Attachments

  • Screenshot_20230422-130730.jpg
    Screenshot_20230422-130730.jpg
    5.7 KB · Views: 267
  • sound1.zip
    34.3 KB · Views: 193
  • Screen_Recording_20230422_130822_1.gif
    Screen_Recording_20230422_130822_1.gif
    88.5 KB · Views: 221

[B4X] AS Settings with SegmentedTab

This is an extension for the AS_Settings library, if it activates this extension, then you can select settings via a new type.

68Gwy24byC6t25EmoUFMaYjmLsEYswKie0vfOyuZOTV6f7d8za.jpeg
ezgif.com-resize (3).gif

Guide
  1. Download...
 

Attachments

  • AS Settings with AS SegmentedTab Example.zip
    178.9 KB · Views: 25
Last edited:

Convert a big Activity project to B4XPages

For years is scare me to convert a big project from Activities to B4XPages, mainly because the app is only for Android (and I don't have plans to IOS or desktop), but in several issues the answer...
 

Another Torch (A >= M)

Based on this posting:


Torch ( A >= M):
#Region  Project Attributes
    #ApplicationLabel: b4aTorchNew...
 

Attachments

  • b4aNewTorch.zip
    24.3 KB · Views: 142
Last edited:

[B4X] BBCodeView Anchors Example

1684912822081.png
1684912838657.png


A small, cross platform, example of using the new anchors feature of BBCodeView.

It reads a CSV file with information about US politicians. The data is used to...
 

Attachments

  • Anchors2.zip
    449.9 KB · Views: 176
Last edited:

Apprendre à utiliser les Vues B4A - Partie 2 (Learn to use B4A views - Part 2)

Learn to use Design Views in B4A (Learn to use Design Views in B4A)


 

maybe not so simple way to clean up texts from wikipedia api

this might be far from perfect, but it works well for me. This little routine replaces useful html tags to bb tags, and gets rid of unwanted html tags in fetched wikipedia api texts.

B4X:
Sub...
 

Blue Stacks connection to B4X IDE.

Blue Stacks 5 adb connection is now more difficult for Android developers. It now randomly chooses the ADB port number every time it starts up. For those of you using Blue Stacks to develop, here...
 
Last edited:

[B4X] Supabase - Realtime Broadcast example app


This is a simple B4X broadcast example with supabase as backend.

...
 

Attachments

  • Supabase Broadcast Example.zip
    185.1 KB · Views: 134
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...
 

Test web back ends in your computer without fiddler and see what your app will post

 

[B4X] AS Settings with PlusMinus

This is an extension for the AS_Settings library, if it activates this extension, then you can select settings via a new type.
v0BTloye7NooRlNQ2mttxAJNMxCj91k9VvdTs8NrvBMGG3gj2b.jpeg
ezgif.com-resize (3).gif

Guide
  1. Download...
 

Attachments

  • AS Settings with AS PlusMinus.zip
    178.3 KB · Views: 26
Last edited:

Get resolution of video from file

MediaMetadataRetriever:
    Dim metaRetriver As JavaObject
    metaRetriver.InitializeNewInstance("android.media.MediaMetadataRetriever", Null)
    metaRetriver.RunMethod("setDataSource"...
 
Last edited:

Resizing Text Control Custom View - Set text control size based on text - Non Latin Text fix

There are many occasions when you need to have multiple labels which all size themselves to their contents and also align with each other with no space.

The solution to this is to use...
 

Attachments

  • clvwithresizingtextupdated.zip
    369.8 KB · Views: 163

Print Made Easy

After understanding this approach, printing will be painless for you forever.

Requirements:
- Any pdf file generation tool, I used HtmlToPdf lib.
- Any base64 converting tool, I used...
 
Last edited:
Top