Tutorials & Examples

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

Corso B4A Intermedio - Creazione di due App, un Timer per gli Scacchi e una Calcolatrice


Ciao a tutti, ho creato un nuovo corso rivolto a chi già si muove un po con B4A e non è proprio alle prime armi. Il...
 
Last edited:

[TEST RESULT] a <> b vs. Not(a = b)

[UPDATED]

Lately I've fallen into the habit of using Not instead of <> for Boolean comparisons - eg: Not(a = b) instead of a <> b. I'm not sure why I started doing this - probably because I think it...
 
Last edited:

AES128/Rijndael cipher implementation animation

Hi everyone,

in the following link you can find an animation about how the AES128/Rijndael cipher is implemented. As you will see, it is a mix of shifting/mixing/substituting (simple or by matrix...
 
Last edited:

GPS tutorial

This example shows how to work with the GPS library.



The GPS object is declared in the Starter service. It is easier to put the GPS in a service and not in an Activity as the...
 

Attachments

  • GPS.zip
    8.1 KB · Views: 7,199
Last edited:

Using CustomBuildAction to deploy to multiple devices at once

This tutorial will demonstrate how you can use CustomBuildAction attribute to deploy to multiple connected devices at once.

The "additional" devices should be connected in USB debug mode. This...
 
Last edited:

Android messages - Cool new feature for SMSing from everywhere

Hi everyone,

I do not know if this is a suitable tutorial for this forum but I just found out and I am absolutely thrilled with it. There is a way to send SMSs from your mobile phone even from...
 
Last edited:

Creating a simple Kotlin wrapper library

The purpose of this tutorial is to show a way of compiling Kotlin into your developed library as a “fat” JAR (a JAR file containing all necessary dependencies and classes bundled in).

Compared to...
 
Last edited:

Wrapping a small and easy 3rd party library with java - Part II

Started here i released a tutorial about wrapping a library for b4a.
Basically this is the same here but i´ve caputed the hole process

Have fun (or be bored watching it). Hope it helps a...
 

GUI SDK Manager for newer versions of Android tools

Attachments

  • B4A-SdkManager-Source.zip
    63.3 KB · Views: 5,257
Last edited:

Please join Facebook group

[B4X] [BitmapCreator] Maximizing Performance with BC

1. This tutorial is about BitmapCreator v3.5+.
2. It is relevant for B4A, B4i and B4J.
3. The features discussed are only needed when making hundreds or more drawings per second.

Drawing...
 
Last edited:

Change color of Android ProgressBar

Automatic Foreground Mode

This is a new feature added in B4A v8.0.

Starting from Android 8.0, services cannot be simply started while the app is in the background or not running at all. Background means that there isn't...
 
Last edited:

[B4X] [XUI] Msgbox

XUI library v1.4 adds support for asynchronous msgbox dialogs.

The API is simple:



B4X:
xui.MsgboxAsync("Hello", "World")...
 

Searching the nearest Coordinate in a Database

today i was in the requrement to write a search-routine in Database.
given was a table with lat an lon values. Goal was to find the nearest Entry.

Tablename: nw05
Fields: gidx (index), glat...
 

B4A connected to Memu

B4A Bridge connect to MEMU? Yes, you can.
Follow all instruction from this video:
I tested and work!!! (see images attached)

Thanks for TechAndMore (YouTube)
 

Attachments

  • B4A2MemuDisconnected.png
    79.1 KB · Views: 905
  • B4A2MemuConnected.png
    75.7 KB · Views: 910

For beginners: How to communicate with a server using httputils2 (Part 2: MySql)

Small update: I use Download2 instead of Poststring now. It handles some things for us like removing illegal space, etc. Otherwise some examples wont work as decribed.


Part 1...
 
Last edited:

[B4X] Create and use SQlite databases with "DB Browser"

I often use Sqlite for my apps and I came across "DB Browser". It's a free tool to browse and edit SQlite databases and tables. Download it from here: http://sqlitebrowser.org/ For B4J apps...
 

[B4X] Tip: Always set FTP.PassiveMode to True

I've just wasted an hour trying to understand why a desktop program that I'm using for many months failed to upload a file to a FTP server.
I realized that the only thing that was recently changed...
 
Last edited:

Android FTP tutorial

Last edited:
Cookies are required to use this site. You must accept them to continue using the site. Learn more…