Tutorials & Examples

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

B4A Book Updated to Version 7.01

Various Utilities created with Inline Java Code

The attached project (VariousUtilities.zip) has a large number of Bitmap and String Utilities. There is also a utility that lists the sensors of your device in the Log. Three B4A classes are...
 

Attachments

  • VariousUtilities.zip
    214.9 KB · Views: 940
  • VariousUtils.zip
    24.6 KB · Views: 800

[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


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

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: 515
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
    51.9 KB · Views: 350
  • AboutBox.zip
    17.6 KB · Views: 348

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,135
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,136
  • 1.png
    3 KB · Views: 1,367
  • 2.png
    5.7 KB · Views: 1,332
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,257
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: 909
  • src.zip
    262.6 KB · Views: 852
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:
Cookies are required to use this site. You must accept them to continue using the site. Learn more…