Tutorials & Examples

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

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

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: 440
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: 437
  • b4aLibFiles.zip
    87.1 KB · Views: 381
  • JavaCode.zip
    61.8 KB · Views: 404
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: 429

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: 941
  • Screen Shot Second Library.png
    Screen Shot Second Library.png
    15.2 KB · Views: 1,322
  • src.zip
    3.8 KB · Views: 905
  • src (2).zip
    4.5 KB · Views: 871
  • Help.png
    Help.png
    79.8 KB · Views: 1,243
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: 344
  • NeheLesson09.zip
    21.7 KB · Views: 364
Last edited:

Intent Based Camera

Attachments

  • CameraIntent.zip
    9.5 KB · Views: 2,985
Last edited:

Google Push notification over ipv6

Yesterday I have found out something searching in Google and checking it, it seems that it worked for me (until ipv4 is deprecated). So this is by 50% a tutorial and by 50% a request for other...
 
Last edited:

[B4X] AS RangeSlider + AS Clock = Sleep Schedule Picker

ezgif.com-gif-maker (4) (2).gif

This is a short Example of what is possible with this 2 views.

I spend a lot of time in creating views, like this and to create a high quality view cost a lot of time. If you want to...
 

Attachments

  • ASRangeSlider + ASClock Example.zip
    179.6 KB · Views: 618
Last edited:

[B4X] [B4XPages] XUI Views Example

This is only an update to the original example from Erel.
I'm starting to create cross-platform apps using B4XPages.
It is mainly to B4A and B4J, because I don't use B4i, and I tried to put...
 

Attachments

  • xui_views2.zip
    34.9 KB · Views: 482

3D Spinning Cube

It is mostly based on this posting. It is a 3D spinning cube. The code is very simple (the lib does all the hard lifting). You can change the images of the 6 x faces of the cube by...
 

Attachments

  • b4aLibFiles.zip
    7 KB · Views: 777
  • b4aOpenGlesPhotoCube.zip
    9.2 KB · Views: 768
  • DemoRes.zip
    116.6 KB · Views: 787
  • TheJavaCode.zip
    4.9 KB · Views: 712
Last edited:

Immersive Mode - hide the navigation bar

Immersive mode means full screen mode where the navigation bar is also hidden.

The user can bring back the bars by swiping near the edges.

The required steps are:

1. Call setSystemUiVisibility...
 

Attachments

  • ImmersiceMode.zip
    14.4 KB · Views: 1,618
Last edited:

"How to draw S-curved arrows between boxes / rectangles"


(Usually I think I tend to post things like this in Chit Chat, but that's not searchable from the forum search engine so I suppose it's better...
 

B4X - Use of Regex

Recently for a web project I was forced to seek a solution in the use of Regex. I have found this site which teaches you and allows you to check the use of regex for matching strings etc. I...
 
Top