Tutorials & Examples

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

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: 492
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: 374

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: 664
  • b4aLibFiles.zip
    7 KB · Views: 669
  • DemoRes.zip
    116.6 KB · Views: 700
  • TheJavaCode.zip
    4.9 KB · Views: 620
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,297
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...
 

B4x on Mac M1with Parallels and Windows 11 Arm

The native use of B4x on M1 CPU is not possible. But using Parallels and Windows 11 Arm makes it possible to have a perfect working development environment. With one problem: there is no JavaFX...
 

B4A on Parallels M1 MAC

B4A works fine in Parallels windows on M1 MAC.
Here are compilation times for same, fairly large project:
Could Erel comment on significant differences in time execution of various parts.
In...
 

[B4X] B4XCache - simple and useful cache collection

B4XCache is a new collection added in B4XCollections v1.10.
It is key / value store collection, similar to Map.
When the cache reaches the set maximum size, the least recent used items are removed...
 
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...
 

Test web back ends in your computer without fiddler and see what your app will post

 

Find a missing value using Approximation & Guesswork (Goal Seek)

I have written a few Financial Calculators over the past couple of weeks, and one approach I've found extremely useful is Approximation and Guesswork.
So I figured, why not share the approach with...
 

💡 [B4X] [XUI] [B4XPages] Simple B4A stock ticker code using JSON REST API - Newer developers

Hello to you all,
Here is a simple example on retrieving data from a REST API requested using the JSON Generator (you could also use http URL download), the same JSON library is also used to parse...
 
Last edited:

[Installation Guide] Amazing Order Taking App

Disclaimer: I do not create/own the original project source code therefore please don't ask me to provide full support. I am just helping a member to make this project work. I do not get any money...
 

[Installation Guide] [B4A] Supermarket, Restaurant, Pharmacy, Store Delivery

Disclaimer: I do not create/own the original project source code therefore please don't ask me to provide full support. I am just helping a member to make this project work. I do not get any money...
 

[UI] [B4A] Real State App UI Example + Source Code

Attachments

  • Real State App.zip
    264.7 KB · Views: 1,024

Publish New App to Google Play

1. Click on button "Create app".
00.png


2. Enter your App name. Select App or Game.
01.png


3. Scroll down. Check all the declarations. Click on button "Create app".
02.png


4...
 
Last edited:

Working with Calendars using ContentResolver (Query, Insert, Update, Delete)

Hello,

i´m playing around with the Calendars on my Device and want to Query them. I found out how it works using ContentResolver querying the ContentProvider available in Android.

You can...
 

Attachments

  • GoogleCalendarClientV0.12.zip
    20.4 KB · Views: 871
  • GoogleCalendarClientV0.13.zip
    20.4 KB · Views: 892
  • GoogleCalendarClientV0.2.zip
    21.7 KB · Views: 846
Last edited:

Using B4A to develop for a Wear OS 2 watch

I just got a Skagen Falster 2 watch and logged my first experiences of trying to use B4A to develop aps for it. Here's what I did!

First of all setup the watch with the Wear OS app on a phone...
 
Last edited:
Top