Tutorials & Examples

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

[B4X] Simple audio call over internet with own TURN/relay server

Attachments

  • [B4A] Socket.io Simple Call Example.zip
    116.8 KB · Views: 1,195
  • [B4i] Socket.io Simple Call Example.zip
    111.7 KB · Views: 921
  • [Server] Socket.io Simple Call Example.zip
    2.4 KB · Views: 1,137
Last edited:

Introduction to the libGDX library

Introduction to the libGDX library

What is libGDX ?

libGDX is a game engine. As we saw in the first tutorial, a game engine provides a framework to create...
 
Last edited:

B4A-Bridge source code

B4A-Bridge is made of two components. One component is running on the device and the other is embedded in the IDE.
The device side is the server side. It waits for connections and when a...
 
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,999
  • Library.zip
    403.1 KB · Views: 1,000
Last edited:

Handle the soft keyboard with the IME library

Android has very good support for custom input method editors (IMEs).
The downside for this powerful feature is that interacting with the soft keyboard can be sometimes quite complicated.

This...
 

Attachments

  • IME_Example.zip
    14.8 KB · Views: 223
Last edited:

background voice recording

Hi..
I have created one activity that contains AudioRecorder using audiorecorder library.
i want to start and stop recording from background using service.
timer is not working to stop...
 

[Closed] Solutions to "The filename or extension is too long" error

This issue was solved with the B4A 13 Beta 6.

I saw many users (include me) with the problem "The filename or extension is too long", when try to compile the project with...
 
Last edited:

Align the AES encryption and decryption results between B4X and the .NET platform

A C# friend who uses MAUI to develop Android apps, but the friend works well, so I recommend him to use B4A, and he got started after a few hours of basic tutorials. He implemented a way to make...
 

Attachments

  • AES B4X and .NET is the same.zip
    142.4 KB · Views: 139
Last edited:

[B4X] AS Settings - Change Description Text on the fly


How to change the description text of a property:
B4X:
AS_Settings1.MainPage.GetProperty("ExportDatabase").Description =...
 

Getting file info using uri from content chooser or from received shared file - example

example of getting file property information from uri provided by content chooser or received file shared to the app. Curtesy of Erel’s example: Received Share. Shows File name, Mime Type...
 

Attachments

  • Screenshot_uriexample.jpg
    Screenshot_uriexample.jpg
    341.8 KB · Views: 2,797
  • Uri.zip
    11 KB · Views: 2,607

mpAndroidCharts - Various Charts using JavaObject

Have never done a B4A "wrapper" before making use of JavaObject only and thought I would see if I could get the PieChart of mpAndroidCharts implemented by using B4A's JavaObject only...
 

Attachments

  • mpChartLib.jar
    360.7 KB · Views: 220
  • mpAndroidPieChartJO.zip
    9.9 KB · Views: 208
Last edited:

Exoplayer track video resolutions

Hello friends, i wanna share with you a code that can you use it to get video resolutions avilables in played video (m3u8,mp4 ...) and show it in listview to select one of this qualities; :
do not...
 

Attachments

  • video_qualities.jpg
    video_qualities.jpg
    37.9 KB · Views: 161

Simple function to convert Markdown Text to CSBuilder Format

This simple function converts Markdown-formatted text so that it can be used as CSBuilder.

This is particularly useful if, for example, you have created a text in MS Word with bold and...
 

Attachments

  • md2cs.zip
    9.6 KB · Views: 125

[B4X] AS Onboarding - Dark and Light mode switch


In this example I show how you can easily change the theme e.g. from a dark theme to a light one and how to...
 

Attachments

  • Light and Dark Example.zip
    246.5 KB · Views: 183

Background location tracking

SS-2018-11-29_15.48.38.png


Simple example of a foreground service that keeps the process running in the background. The current location is shown in...
 

Attachments

  • MyLocation.zip
    10.6 KB · Views: 629
Last edited:

select image from device and upload in server

well hi too all .
As the title suggests, I want to teach you how to upload photos
I had searched a lot about it myself and had not found any results. By changing other people's codes, I was able...
 

CustomCardView Base On CustomListview Module

This is a module base on CustomListview, all function same with CustomListview I call it CustomCardView. Hope this help.

B4X:
For I = 0 To 5
'(the 47%x is cardview width, and the 45%y is the...
 

Attachments

  • CustomCardViewExample.zip
    14.2 KB · Views: 699
  • CustomCardView.bas
    8.6 KB · Views: 669

[B4X] Supabase - Call a Postgres function (RPC)


Perform a function call.
You can call Postgres functions as Remote Procedure Calls...
 

Google Play Billing v.7 Subscription Example

This is a modified example, based in the original example from @Erel.
The previous example only make purchases.
This new example utilizes the Google Play Billing library v.7, changes...
 

Attachments

  • BillingExample7.zip
    11.1 KB · Views: 262

Share Text File Between 2 Apps

This is just another example based on the ManageExternalStorage class provided by @agraham.
It is a response to this question.

B4ARepositoryWriter - writes a text file to an...
 

Attachments

  • B4ARepositoryWriter.zip
    11.3 KB · Views: 204
  • B4ARepositoryReader.zip
    11.4 KB · Views: 200
Top