Tutorials & Examples

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

Play Games Services - Example and Class

Last year, I commissioned Biswajit to write a library for the new Google Play Games Services library. To manage the complexity of the code, I wrote a class called...
 

Attachments

  • Play Game Services Example.zip
    29.1 KB · Views: 264

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

Attachments

  • ProviderService.zip
    9.5 KB · Views: 255
  • RequesterService.zip
    9.3 KB · Views: 263

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

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:

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: 341
Last edited:

Please test reading your NFC credit card.....

Please test scanning of your NFC enabled credit card using the APK in the download link below. Please ensure that you have enabled NFC on your cell/device before you do a scan - the...
 
Last edited:

B4A Book Now Covers Version 11.20

cover-295.jpg


I am happy to announce that both the paperback and electronic versions of the B4A tutorial and reference book “B4A Rapid Android App Development using BASIC” by Wyken Seagrave have...
 

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: 339
  • b4aLibFiles.zip
    87.1 KB · Views: 302
  • JavaCode.zip
    61.8 KB · Views: 302
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: 338

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: 241
  • NeheLesson09.zip
    21.7 KB · Views: 266
Last edited:

Webview & File.DirAssets - Enough Already

UPDATE: AFTER READING THIS POST, PLEASE REFER TO POST#5 FOR A BETTER SOLUTION (AT LEAST, IN MY OPINION).
a code module provided by member Ivica Golubovic allows you to continue using...
 

Attachments

  • assets.zip
    82.9 KB · Views: 528
Last edited:

Create a B4X library with Android Studio - Step by step

Attachments

  • 1642537591575.png
    1642537591575.png
    9.2 KB · Views: 456
  • 1642537591596.png
    1642537591596.png
    47 KB · Views: 392
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: 486
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: 369

"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