Tutorials & Examples

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

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

[B4XPages] [BitmapCreator] Cross platform Falling Sand game

Attachments

  • B4XFallingSand.zip
    204.4 KB · Views: 559

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: 786
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,336
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: 778
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: 1,078
Last edited:

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

Attachments

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

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: 874
  • b4xpages_orientation_example.zip
    203.2 KB · Views: 728
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,208

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

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

  • RequesterService.zip
    9.3 KB · Views: 475
  • ProviderService.zip
    9.5 KB · Views: 470

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

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: 587
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...
 
Top