Tutorials & Examples

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

[B4X] Documentation Booklets

The B4X documentation booklets are available in PDF format, Download Link.
All files are included in the zip file in the link above, pdf booklets and all the source code.

You can also...
 
Last edited:

[B4X] Features that Erel recommends to avoid

Many things have changed in B4X and also in the underlying platforms. I will try to list here all kinds of (old) features that have better alternatives.
B4X is backward compatible so these...
 
Last edited:

[B4X] "Code Smells" - common mistakes and other tips

"Code smells" are common patterns that can indicate that there is a problem in the code. A problem doesn't mean that the code doesn't work, it might be that it will be difficult to maintain it or...
 
Last edited:

Understanding Network security configuration

Every developer must understand this article if developing any kind of network communication app.

Android os recent versions put end apps users privacy at the heart of its platform, the network...
 

B4Xgoodies_from_walt61 Online

Well,

As JamesGreaves requested,
"So do you not think it would be of value to have even something like @walt61 has created but online?"...
 
Last edited:

[B4X] RSS Viewer using xCustomListView

Attachments

  • RSS Example.zip
    20.7 KB · Views: 600
Last edited:

[B4X] JSON crack - Visualize your JSON as a diagram

Here is a nice tool that visualizes the JSON like a diagram. Pretty cool.

 

Now you can debug android app directly under Windows11

Intel's Bridge technology will allow Android apps to run natively on Windows 11, now Microsoft released the beta version。

1. download windows11 from...
 
Last edited:

[B4X] AS ViewPager - Auto Play

In this example project you can see how to add an auto play feautre to the AS ViewPager.
B4X:
Sub Class_Globals
    Private tmr_AutoPlay As Timer
End Sub

Private Sub B4XPage_Created (Root1 As...
 

Attachments

  • AS ViewPager Auto Play.zip
    10.2 KB · Views: 33

💡 [B4X] [XUI] [B4XPages] Using B4A GPS to create a BASIC weather app - Newer developers

Hello All
Here we have an simple example on how you use your Android device GPS in conjunction with OpenWeather API, this is just a simple example and can obviously be changed and updated by...
 
Last edited:

DJI virtual stick-tutorial, waypoint- and hotpoint-mission for DJI Mini- and Air-series

After the release of the new grandiose DJI library and the preliminary work of freedom2000 and JordiCP in this thread...
 
Last edited:

Full private chat and multi-chat (similar to Whatsapp)

NovaChat is a private chat class module (Multi-User in next version) that has almost all the functionality of instant messaging.

Capture.PNG
Capture 1.PNG
Capture 3.PNG

NovaChat uses the phone as a...
 

B4A Social Network Version 1.30

FREE Source Code's !

Hi all,

i have updated my webpage and decided to add a tutorial section.

My first tutorial is a simple calculator (+,-,*,/) there is a video tutorial incl. Source code on my site.

I will upload...
 

Attachments

  • t1calc.zip
    3.7 KB · Views: 2,794
Last edited:

Chat Mqtt Over Internet Free Source Code B4A/B4J

Attachments

  • B4JChatMqtt.zip
    8.3 KB · Views: 54
  • B4AChatMqtt.zip
    13.7 KB · Views: 66
Last edited:

Test Card Always Approves - Item unavailable in your country

Google never seizes to surprise us and its latest miracle is the following:

TestCardsNotAvailable.jpg


In order to fix this no matter if you have an EmailList set with the testers I have done two things. I do...
 
Last edited:

Navigation Side Menu

I was playing around with the ListView and found it a great use for a menu system.
Following along as much as possible with the design concepts defined on a Material.io design web site.

See...
 

Attachments

  • NavigationMenuOptimized.zip
    14 KB · Views: 63

[B4XPages] Bluetooth Chat Example

Attachments

  • BluetoothChat.zip
    18 KB · Views: 120
Last edited:

B4A-Bridge over wifi without a local network

Starting from B4A v5.0, B4A-Bridge over Bluetooth is no longer available. You can use B4A-Bridge over wifi or USB debug mode to connect the IDE to a device.

By creating a mobile hotspot you can...
 

[B4X] AS_TabMenuAdvanced + ASPopupMenuAdvanced

This is a example how to use the AS_TabMenuAdvanced together with the ASPopupMenuAdvanced.
1654270847025.png

For this example you need the 2 libs...
 

Attachments

  • AS TabMenuAdvanced + ASPopupMenuAdvanced Example.zip
    455.1 KB · Views: 107
Last edited:

In App Billing - steps required in Google Console

This applies to Google Billing V4.

I was following the tutorial to add in app billing to my app and I found that it would not work in test...
 

Syncing local databases using PHP to access a database on a hosted server

My need was to sync calendars in which user 'A' changes the calendar and sends the change to other users by writing records to the hosted database.
The other users query periodically to see it...
 

Attachments

  • TestPHP.zip
    12.4 KB · Views: 61
  • TestPhp.txt
    4.1 KB · Views: 57

Api Levels

Searching the internet I came across this site that cumulates all the necessary data for the B4A developer:

 
Top