Tutorials & Examples

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

[UI] [B4A] Online Course App UI Example + Source Code

Attachments

  • Online Course.zip
    273.5 KB · Views: 1,679

How to write a tasker plugin

Edge Case use for B4XPages: Changing Orientation for Many Pages

This is for advanced users only. Please see Erel's important cautions about using this approach below.

This post and examples demonstrate how to extend B4XPages to allow orientation...
 

Attachments

  • ezgif.com-gif-maker.png
    ezgif.com-gif-maker.png
    244.4 KB · Views: 855
  • b4xpages_orientation_example.zip
    203.2 KB · Views: 707
Last edited:

Add Charts With Google Charts Service

The attached project is a port of this example: [Server] Google Charts service to Basic4android.
A similar example with more charts is available here...
 

Attachments

  • GoogleCharts.zip
    8.1 KB · Views: 2,197

OSMDroid - MapView for B4A tutorial

Attachments

  • 01 - SimpleMap.zip
    5.8 KB · Views: 4,982
Last edited:

Share/Show file(s) from internal

Here's a small example how to show/share file(s) from the internal storage (benefits: no permissions are needed)

What it does:

- creates a folder called "shared" (under File.DirInternal)
- this...
 

Attachments

  • ShareFromInternal.zip
    8.6 KB · Views: 713

Get real display size in inch

Hello,

Maybe this can be useful for others.
You can get the exact screen diagonal size (in inch) using the following simple routine.

B4X:
Sub GetDevicePhysicalSize As Double
#If JAVA
import...
 
Last edited:

Custom Intent Provider Requester Services, updated for Android 11 (API 30)

Attachments

  • ProviderService.zip
    9.5 KB · Views: 457
  • RequesterService.zip
    9.3 KB · Views: 461

Long-running background service example: AutoCount

In debugging my current app I needed to reset back to basics to debug some code. I ended up creating this simple app which contains all the basics of a long-running background service (taken from...
 

Attachments

  • BackgroundAutoCount.zip
    10.7 KB · Views: 853

My way to work with local DB

I save the SQLite DB used by my apps in the directory corresponding to File.DirInternal, which is the app's exclusive space.

This, however, prevents you from accessing the DB from outside...
 
Last edited:

integrating huawei map kit into the B4A platform

the huawei map kit will hopefully be integrated into the B4A soon..

i have opened a topic here, and huawei teams will provide support...
 

[B4X] Sophisticated sorting with B4XComparatorSort

B4XCollections v1.13 includes a new sorting feature named B4XComparatorSort.
This feature allows sorting using a custom comparator class.
The comparator class is a class that you create and it...
 

Attachments

  • Project.zip
    15.5 KB · Views: 571
Last edited:

[B4x] AES Encryption (lessons learned & best practice)

Last weekend I migrated my XAMPP test environment (Apache/PHP/MySql). It came with PHP 7.x. Yesterday I wanted to test one of my Apps using AES and Mcrypt for it in PHP but it didn't work no more...
 

[B4X] Tip - ROBOCOPY error related to shared files folder

You download a project from the forum and when you run it, you get an error message similar to:

B4X:
B4A Version: 10.2
Java Version: 8
Parsing code.    (0.11s)
Building folders structure...
 

min3D framework Samples

Sample 1

A wrap for this Github project. Posting:
1. B4A sample project
2. Java Code - check the code inside the wrapper vs the Java sample code.
3. B4A lib files

A nice...
 

Attachments

  • b4aExampleTextureOffset.zip
    188 KB · Views: 549
  • b4aLibFiles.zip
    87.1 KB · Views: 478
  • JavaCode.zip
    61.8 KB · Views: 499
Last edited:

Data Safety Admob

Hello team,

If you recieved an email about submiting Data Safety form at Google Play Console and your apps using Admob, you can watch this video to guide you.

More infos you can find...
 

Create Custom Keyboard Layout for Coding

Sometimes it is really annoying to have keys we use so often to be lying in most inaccessible parts of keyboard.
And to make the matter worse they might also involve combination of shift etc...
 

Attachments

  • c0d3r.zip
    2.1 KB · Views: 532

Creating a Library with Simple Library Compiler (SLC)

This is for people like me - B4A libraries for Dummies 101 (via SLC). I will attempt to explain it the best I can (there is nothing in this library that one can't do via B4A code. This is purely a...
 

Attachments

  • JHSMATH.zip
    7 KB · Views: 1,032
  • Screen Shot Second Library.png
    Screen Shot Second Library.png
    15.2 KB · Views: 1,443
  • src.zip
    3.8 KB · Views: 1,017
  • src (2).zip
    4.5 KB · Views: 974
  • Help.png
    Help.png
    79.8 KB · Views: 1,353
Last edited:

B4A-Bridge --> How to Install and Get it Working! (Solution - Windows 10 & Android 10!!)

I've made this (new thread) post because I just went through all of this and scoured these forums and the Internet and could not find any complete step-by-step instructions that worked, and the...
 

OpenGL ES - NeHe sample projects

Attached sample project is a wrap for this Github Project.

Attached are the following:

1. NeheLesson09.zip - it contains the library files (Jar and XML). Copy the Jar and XML to your...
 

Attachments

  • srcLesson09.zip
    8 KB · Views: 453
  • NeheLesson09.zip
    21.7 KB · Views: 492
Last edited:
Top