Tutorials & Examples

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

[B4X] AS_TabMenuAdvanced + ASPopupMenu

This is a example how to use the AS_TabMenuAdvanced together with the ASPopupMenu.
1654121495794.png

For this example you need the 2 libs...
 

Attachments

  • AS TabMenuAdvanced + ASPopupMenu Example.zip
    450.7 KB · Views: 638
Last edited:

JPCT-AE Polyline Example

Polyline in JPCT-AE is unable for using by standart methods. But, by Ricardossy1, in his post: Ricardossy1 post, was described way for solving problem.
I was needed for Polylines in my...
 

Attachments

  • JPCT-AE (alhowiriny).jar
    79.4 KB · Views: 289
  • JPCT-AE (alhowiriny).xml
    414.4 KB · Views: 290
  • jpct_ae.jar
    380.4 KB · Views: 289
Last edited:

[B4XPages] [BitmapCreator] Cross platform Falling Sand game

Attachments

  • B4XFallingSand.zip
    204.4 KB · Views: 275

Read And Write NFC Tags !

(NFCRW has been Updated !)
In this project You can scan and write your Ndef or NFC tags Very simply,
(This project is for B4XPages)

The Principal codes ...
 

Attachments

  • ProjectNFC.zip
    14.9 KB · Views: 459
Last edited:

Offline Continuous Speech Recognition

This is a very old project which is unlikely to function correctly on newer versions of Android. The link to the project should still be active and if you want to use it for reference to...
 

Attachments

  • copyright.txt
    1.5 KB · Views: 1,840
  • Library.zip
    403.1 KB · Views: 815
Last edited:

B4A UCanAccess Demo (works under B4J - see notes)

This demo is a slight modification of @klaus's B4XPages SQLiteLight2 demo...
 

Attachments

  • B4XPagesUCanAccessLight2.2020.08.25.01a.zip
    146 KB · Views: 805
Last edited:

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

Attachments

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

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

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

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: 251
  • RequesterService.zip
    9.3 KB · Views: 261

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

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:

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: 335
  • b4aLibFiles.zip
    87.1 KB · Views: 299
  • JavaCode.zip
    61.8 KB · Views: 301
Last edited:

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: 850
  • Screen Shot Second Library.png
    Screen Shot Second Library.png
    15.2 KB · Views: 1,217
  • src.zip
    3.8 KB · Views: 786
  • src (2).zip
    4.5 KB · Views: 768
  • Help.png
    Help.png
    79.8 KB · Views: 1,139
Last edited:

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: 239
  • NeheLesson09.zip
    21.7 KB · Views: 264
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: 483
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: 366

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

  • b4aOpenGlesPhotoCube.zip
    9.2 KB · Views: 654
  • b4aLibFiles.zip
    7 KB · Views: 660
  • DemoRes.zip
    116.6 KB · Views: 694
  • TheJavaCode.zip
    4.9 KB · Views: 612
Last edited:

Firebasemessaging (FCM): Receive messages in doze/sleep mode

Issue: Device doesn't receive FCM messages while in sleep/doze mode

Important to know: Google uses 2 different api's with different keywords

1638195059390.png


So...
 
Top