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

Important note about B4XPages projects

I know it is simple info for experts, but it is critical point for who want to start using B4XPages projects:- B4XPages project is for cross-platform development, that is mean when created; all...
 

[B4X] Regular expressions (RegEx) tutorial

Regular expressions are very powerful and make complicate parsing challenges much easier.
This short tutorial will describe the usage of regular expressions in Basic4android.
If you are not...
 
Last edited:

MQTT Topic best practice

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: 393
  • JPCT-AE (alhowiriny).xml
    414.4 KB · Views: 382
  • jpct_ae.jar
    380.4 KB · Views: 383
Last edited:

[B4XPages] [BitmapCreator] Cross platform Falling Sand game

Attachments

  • B4XFallingSand.zip
    204.4 KB · Views: 364

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

NFC - Reading and Writing

NFC v2.00 adds support for low level access to the NFC features. This allows reading and writing from NFC tags.

The NFC library provides three features:
- Reading Ndef tags based intent filters...
 

Attachments

  • Project.zip
    15.4 KB · Views: 1,008
Last edited:

[B4A] [Class] [Calendar] Class wmCalendar - Android calendar manipulation based on DonManfred's explorations

This is a calendar manipulation class based on @DonManfred 's explorations which you can find at...
 

Attachments

  • wmCalendarDemo.zip
    21.9 KB · Views: 613
Last edited:

Implementing Launcher Icons using MipMap

The Launcher icon always shows as 48x48 dip, but when translated into pixels on screens with different resolutions, this can become 48, 72, 96, 144 or even 192 pixels square. You should ideally...
 

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

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

Attachments

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

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: 726
  • b4xpages_orientation_example.zip
    203.2 KB · Views: 599
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,094

OSMDroid - MapView for B4A tutorial

Attachments

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

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

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

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: 356
  • RequesterService.zip
    9.3 KB · Views: 363
Top