Tutorials & Examples

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

[B4X] B4X Programming Technics + Track Changes Tool

Hi every one and season's greetings,

(11-1-2020) New version of the tool with timestamp and "Transfered <Checkbox>"


When I program I am used to keep notes in my code to know...
 

Attachments

  • B4XProgTechs.zip
    3.8 KB · Views: 523
Last edited:

How open camera and choose imagen file from gallery of device

In this example i can take a photo or choose an image from gallery and put it in ImageView
 

Attachments

  • CameraAndImages.zip
    11.9 KB · Views: 929

[B4X] OkHttpUtils2 / iHttpUtils2 and accept all option

Note that OkHttpUtils2, jOkHttpUtils2 and iHttpUtils2 are actually the exact same b4x library.
jOkHttpUtils2_NONUI was required as a special version for non-ui B4J apps. It is no longer required...
 
Last edited:

Hugo - ESP8266 4-button WiFi remote

Not exactly a tutorial or Android-only, but a hint to the community for those who like playing with home automation stuff, and possibly for others as well. I happened across this very nice device...
 

[B4X] Paralells Desktop 15 Windows 10 B4A,B4I,B4J and B4R looks blurry (Fix)

Hello,

i have searched for a long time for a fix for this, every time i have B4A on my second monitor on my mac, then the text was blurry and this was no fun to work with...

Now i have a fix for...
 

[B4X] Drawing with BitmapCreator

BitmapCreator (BC) continues to evolve. Version 4.5 update is a large update with several new drawing features.

Background

At its core BC holds an array of bytes that represent an image...
 
Last edited:

Responsive Chat Example

Hi All.
I made this example for a chatbot app here on brasil and now i want to share it here.


chatclv.jpg


This example use xCLV and IME lib (Already in B4A).
The messages fit...
 

Embed an Http Server in your Android Application

The HttpServer library is a new library, based on an open source project named Jetty. This library allows you to easily embed an Http server in your application.

Http server means that you...
 

Attachments

  • HttpServerExample.zip
    58.1 KB · Views: 7,538
Last edited:

[B4X] B4XTable - Load data from SQL database

B4XTable.SetData expects a List where each entry in the list is an array of objects with the data of a single row.

The data can come from any source you like...
 

Attachments

  • B4XTableFromSQL.zip
    336.6 KB · Views: 4,482

B4XGoodies Check App

Hi Friends,

As you know, I made an online sheet of Walt's B4XGoodies List and he helped me by providing download links of html and version text files...
 

Attachments

  • B4XGoodies_Check_1.002.zip
    13.7 KB · Views: 512
  • B4XGoodies_Check_1.003.zip
    13.7 KB · Views: 480
  • B4XGoodies_Check_1.004.zip
    139.2 KB · Views: 503
Last edited:

Sharing files from your app with File Provider

Attachments

  • FilePicker.zip
    31.6 KB · Views: 2,648
Last edited:

Reading NDEF data from NFC tags

Using the NFC library you can read NFC tags formatted in NDEF form (NFC Data Exchange Format).
You can read more information about the internal process here: NFC Basics | Android Developers...
 

AndroidX SDK

Android Support Library was implemented and maintained in the last 8 years by Google. It includes a wide range of features and it hides many of the differences between the various Android...
 
Last edited:

MQTT Chat with Auto Discovery

Attachments

  • MqttChatWithAutoDiscovery.zip
    11.7 KB · Views: 3,348
Last edited:

Background Services in Android 8+ - Observations !

[B4X] Resumable subs and the index pattern

The "index pattern" is a pattern that you can see in many examples and libraries where resumable subs are used. It is a simple solution to avoid race conditions and unexpected states.

The...
 
Last edited:

Download huge files with HttpUtils2

Attachments

  • LargeFileDownload.zip
    11.5 KB · Views: 2,897
Last edited:

Library compilation - Compile your project to a library

Starting from Basic4android v2.50 you can compile your project, or part of it to a regular library.

Why should I compile a library?
  • Break large projects into several smaller (more...
 

Upgrading a Google Maps app to targetSDK 28

I decided to become Google's darling. After a very old B4A app, that went perfect for many many years (API 8, targetSDK 14), was threatened to be thrown out of the app store, I decided to waste my...
 
Last edited:

POU Game example

Hi all.
Here is a simple pou game example (only one room).


This example use this another example, but now with images...
 
Top