Tutorials & Examples

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

[B4X] [Video]How to's, B4A UI, andTutorials from Leafecodes

My Youtube Channel Link - Please Subscribe


This video takes you through the process of creating onboarding...
 
Last edited:

Android Device Unique ID - Alternative to PhoneId

This is an old tutorial. It will not work on new versions of Android. You should either generate a random value when the app starts for the first time or use the advertising id...
 
Last edited:

B4A eBook en Español

9781871281453-10.jpg

We are delighted to announce that our best-selling book "B4A Rapid Android App Development using BASIC" is now available in Spanish...
 

Amir_RecyclerView-Samples

Last edited:

B4XPages vs Activities, Bluetooth Example

In the thread BT Pages Example, a new version of the BT example was created using Pages. Since I'm just looking at Pages for the first time, I popped the new and old versions into a code...
 

Attachments

  • BT_Activities_vs_Pages.zip
    32.3 KB · Views: 622

IDE Theme: Night Owl

Even though I don't know enough to help people with B4A code, I thought that I would give back what I can and share an IDE theme with you.

I ported one of my favourite VS Code themes, Night...
 

Attachments

  • Night Owl.zip
    1.2 KB · Views: 644
Last edited:

About Box with OSL clickable links

Finally, I got my project completed. I learnt a lot of things about Android from this community. This community has generously provided source code to various UI's and more, without which I would...
 

Attachments

  • about_box_example.png
    about_box_example.png
    51.9 KB · Views: 459
  • AboutBox.zip
    17.6 KB · Views: 467

Material Design 4 - Modifyable and advanced Menu

Note: You should use B4A 6.0 or above for this tutorial.

With the ACToolBar(Light|Dark) object we can get access to the Menu object of the activity. This opens the possibility for modifyable...
 

Attachments

  • ToolBarMenuExample2_0.zip
    18.6 KB · Views: 4,359
Last edited:

How to use NoxPlayer with B4A

It's recomended to use a real device or the Android SDK included emulator.

But if you for some reason want to use NoxPlayer as emulator it is easy!

Alternative 1 - Connect B4A IDE directly to...
 
Last edited:

[B4X] B4XPages - Converting to B4XPages

I'm opening this thread to collect tricks and caveats I'm coming across while converting my projects to B4XPages

CallSub from Service
Looks like a service that is started at boot may...
 
Last edited:

[B4X] Erel Teaches Programming - video tutorials

ETP is a series of video tutorials about B4X. The purpose is to allow developers with any programming experience, including no experience, to learn how to program with B4X.

The videos are...
 
Last edited:

[B4X] Corona Cases - Cross platform Example

Last edited:

Encrypting information with RandomAccessFile library

RandomAccessFile v1.30 introduces two new methods named: WriteEncryptedObject and ReadEncryptedObject.
These methods are similar to WriteObject and ReadObject methods. The difference is that the...
 

How to make a simple loading screen

Here is a simples exemple how to make a simple loading screen with a timer.
you can use to make a splash screnn too.

is based on webview
-html
-css

The html and gif is on files folder

This is...
 

Attachments

  • loading.zip
    378.6 KB · Views: 2,280
  • 1.png
    1.png
    3 KB · Views: 1,490
  • 2.png
    2.png
    5.7 KB · Views: 1,440
Last edited:

MySQL data to webview using PHP

Hi there

The purpose of this is to demo how one can add, update, read and display mysql database records into a webview.


1. Setting up development environment

For this...
 

Attachments

  • PhpLoginSourceCode.zip
    14.1 KB · Views: 1,407
Last edited:

GOOGLE MAPS ON WEBVIEW (No API key)

Edit by Erel: Don't use WebView for this. Unlike Google Maps SDK, it is not free, more difficult to implement and Google Maps SDK will work better...
 
Last edited by a moderator:

Analog24hClock - Post #12

It wraps a tiny bit of this - just enough to show the clock. Thought it looked quite nifty...Have done nothing special to it other than painting the hands and the face a bit...:) Lib...
 

Attachments

  • Analog24hClock.zip
    494.3 KB · Views: 1,024
  • src.zip
    262.6 KB · Views: 999
Last edited:

[B4X] [B4XPages] What exactly does it solve?

B4XPages makes many things simple and even trivial.
As Android developers, we are dealing with these challenges for many years now so it might take us a while to understand how simple things can...
 
Last edited:

[B4X] Creating a cross platform custom view packed as b4xlib

The attached b4xlib library is a cross platform list of colors:

firefox_86IZH8vlHm.png


It is a XUI custom view. The custom view is based on two...
 

Attachments

  • ColorsListProject.zip
    18.4 KB · Views: 837
  • B4J ColorsList Usage Example.zip
    1.9 KB · Views: 813
  • ColorsList.b4xlib
    9.4 KB · Views: 746

[B4X] [B4XPages] Network + AsyncStreams + B4XSerializator

java_USPawWZPiX.png


1592139571839.png


B4i_nUuTQqGuEH.png


Cross platform version, based on B4XPages, of...
 

Attachments

  • Network Example.zip
    220.7 KB · Views: 3,289
Last edited:
Top