Tutorials & Examples

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

Optimizing Private And Professional Work

Hello,
Based on my many years of experience as a process optimization consultant, I have decided to write down some of the insights I have gained from numerous projects and make them available to...
 

Attachments

  • Essay.zip
    262.8 KB · Views: 267

ElevateUI Demo in B4XPage and Activity

Check Elevate UI Demo 3 at post#6

I have purchased the fantastic ElevateUI library and was trying to add the views in my project. Since the library comes without any demo or manual, I was...
 

Attachments

  • ElevateUI_Demo.zip
    73.2 KB · Views: 357
Last edited:

[B4X] AS AppSummary - Images, Placeholder, Title and Descriptions


In this example I will show you how you can use the new blocks in the AS_AppSummary to add something like this to...
 

Attachments

  • AS AppSummary New Features Example.zip
    303.2 KB · Views: 244

HOW YOU CAN USE ScrollView

hello
if you have a panel and you want scroll this panel then you use this source.

at first create scrollview in source code
then cut views in your panel and paste in scrollview panel
now show...
 

Attachments

  • scroll.rar
    443.8 KB · Views: 307
  • Untitled.png
    Untitled.png
    16.8 KB · Views: 387
Last edited:

Wise Easy Print Code P052

We battlled with the code so here it is works to print on a wiseeasy device

some code to print files:
#Region  Project Attributes
    #ApplicationLabel: B4A Example
    #VersionCode: 1
    #VersionName...
 

[B4X] [B4XPages] BCTextEngine parser: B4X Code Highlighter

java_QIDqgmNTqq.png


firefox_5AjleJ4uQg.png


This is an example of creating a custom parser for...
 

Attachments

  • CodeHighlighter.zip
    14.4 KB · Views: 1,221
Last edited:

[B4X]Automatically package b4xlib libraries

When I was writing the b4xlib library, I encountered complicated steps, and I needed to decompress and compress the b4xlib file (zip format) frequently.

So I wrote this tool to automatically...
 

Attachments

  • Automatic packaging as b4xlib library.zip
    901 bytes · Views: 266
  • B4XLibs.b4xtemplate
    10.2 KB · Views: 286
Last edited:

GPS / GNSS tutorial

Attachments

  • GPSExample.zip
    15 KB · Views: 486
Last edited:

[B4X] Supabase - Storage Files


This is a very simple tutorial on how to use the storage file options.

Upload File...
 

How to get access to ALL FILES AND FOLDERS on Android 11 to 14+ (DirRootExternal)

This is an example of how some apps like file managers, antivirus and other apps that depends on access to DirRootExternal to create folders, create files and read files from the Root of the...
 

Attachments

  • FilesRoot.zip
    69.3 KB · Views: 424

WebViewSharePDF

There are some examples on this forum for
1. saving Webview content as Bitmap,
2. creating PDF file using Printing library and
3. opening or sharing the PDF file to WhatsApp using...
 
Last edited:

[B4X] PocketBase - Deleting files


Please read the official documentation about deleting files in pocketbase...
 

[B4X] PocketBase - How to reach api via smartphone on the same network when hosted locally


If you develop with B4J with Pocketbase, then you simply enter the localhost address...
 

Make http request to Web API Server v3 (POST/PUT) with XML payload

Here is a modified example where the web api server excepts XML payload.
Required latest WebApiUtils v3.05 and MiniORMUtils.

Change the URL to server
B4X:
Private URL As String =...
 

Attachments

  • XmlClient.zip
    440.6 KB · Views: 265
  • xmlserver.zip
    422.4 KB · Views: 275
Last edited:

EdditText Label Like SnapChat

VidSpeed1506694593792_1-iloveimg-resized.gif

Hello,

UPDATE

This version includes Multiline Support and Guaranteed functionality. The last version had a lot of bugs, that new example is more mature.


At the moment, I'm...
 
Last edited:

Capture volume keys events while app is in the background

Could some Java guru kindly convert the following codes into B4A code for me, if possible, please? I would greatly appreciate it!

I'm looking for a reliable solution as a background service...
 

[B4X] PocketBase - Authentification


Please read the official documentation about auth in pocketbase...
 

[B4X] PocketBase - Storage


Please read the official documentation about storage in pocketbase...
 
Last edited:

SQL (SQLite) InstrRev

SQLite has the string function Instr, which finds the first occurrence of a specified string in another string.
There is no InstrRev function though to find the last occurrence of a string within...
 

[B4X] PocketBase - Database CRUD


This is a very simple tutorial on how to use the CRUD options. A more detailed...
 
Top