Tutorials & Examples

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

UltimateListView Image Grid Example

Attachments

  • ulv_grid.zip
    221.3 KB · Views: 1,702

Generate Extract Grab Direct Youtube DL Link

Hi, am happy to share this project of mine.
What it does is, it accepts normal YouTube link and gets its direct download link from this website https://bitdownloader.com.
The direct download...
 

Attachments

  • mcYoutubeDL.zip
    51.8 KB · Views: 499
Last edited:

maybe not so simple way to clean up texts from wikipedia api

this might be far from perfect, but it works well for me. This little routine replaces useful html tags to bb tags, and gets rid of unwanted html tags in fetched wikipedia api texts.

B4X:
Sub...
 

[B4X] PHP implementation of B4XSerializator and PhpCloudKVS Server example

Hello,
First of all, sorry for my bad english... I'll try to do my best...

For my project, I ported the source of B4XSerializator of @Erel from here to php.
Even if php is considered...
 

Attachments

  • B4XSerializator_for_php_v0.5.zip
    2.8 KB · Views: 541
  • PhpCloudKVS_Server.zip
    41.7 KB · Views: 527
  • PhpCloudKVS_B4JClient.zip
    6.5 KB · Views: 500
Last edited:

[B4X] [B4XPages] Bluetooth scanner in SPP mode

Introduction

I've been developing mobile application for over 25 years (Telxon, Symbol, Windows Mobile, Xamarin, CF.net). Up until now the barcode scanners were integrated into the mobile...
 

Attachments

  • BluetoothPages-forum.zip
    502.2 KB · Views: 573

Various Utilities created with Inline Java Code

The attached project (VariousUtilities.zip) has a large number of Bitmap and String Utilities. There is also a utility that lists the sensors of your device in the Log. Three B4A classes are...
 

Attachments

  • VariousUtilities.zip
    214.9 KB · Views: 872
  • VariousUtils.zip
    24.6 KB · Views: 729

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,448
  • Uri.zip
    11 KB · Views: 2,321

Amir_RecyclerView-Samples

Last edited:

B4XPages vs Activities, Bluetooth Example

In the thread BT Pages Example, a new version of the BT example was created using Pages. Since I'm just looking at Pages for the first time, I popped the new and old versions into a code...
 

Attachments

  • BT_Activities_vs_Pages.zip
    32.3 KB · Views: 382

IDE Theme: Night Owl

Even though I don't know enough to help people with B4A code, I thought that I would give back what I can and share an IDE theme with you.

I ported one of my favourite VS Code themes, Night...
 

Attachments

  • Night Owl.zip
    1.2 KB · Views: 453
Last edited:

About Box with OSL clickable links

Finally, I got my project completed. I learnt a lot of things about Android from this community. This community has generously provided source code to various UI's and more, without which I would...
 

Attachments

  • about_box_example.png
    about_box_example.png
    51.9 KB · Views: 290
  • AboutBox.zip
    17.6 KB · Views: 278

[B4X] B4XPages - Converting to B4XPages

I'm opening this thread to collect tricks and caveats I'm coming across while converting my projects to B4XPages

CallSub from Service
Looks like a service that is started at boot may...
 
Last edited:

Analog24hClock - Post #12

It wraps a tiny bit of this - just enough to show the clock. Thought it looked quite nifty...Have done nothing special to it other than painting the hands and the face a bit...:) Lib...
 

Attachments

  • Analog24hClock.zip
    494.3 KB · Views: 859
  • src.zip
    262.6 KB · Views: 783
Last edited:

Simple Compass

Have done this just for the fun of it. Have wrapped this posting. The B4A code is short and sweet:

B4X:
#Region  Project Attributes
    #ApplicationLabel: Compass
    #VersionCode: 1...
 

Attachments

  • TheJavaCode.zip
    37.4 KB · Views: 922
  • b4aCompass.zip
    105.8 KB · Views: 1,243
  • CompassLibFiles.zip
    6.5 KB · Views: 1,251

[B4X] SwiftButton - Adding Click/LongClick event

The next code add the funcionality in b4x to capture the click & longClick using Touch, in case of b4j add the option to fire the longClick using the Right Mouse Click or the secondary mouse...
 

COVID-19 Info Example

Hi,

Had made an application in B4A (my first in B4A) to display COVID-19 statistics.
Lots of data is specific to India. You can change them to reflect data from your country.

Used quite a bit of...
 

Attachments

  • pkCovid.zip
    372.1 KB · Views: 534
Last edited:

[B4X] Create Thumbnail and save it

Usage:
SavePictureToFile(XUIImageToJPEGByteArray(CreateThumbnail(xui.LoadBitmapResize(File.DirAssets,"Snapchat-248558753.jpg",150dip,150dip,True)),150dip,150dip,50),File.DirRootExternal,"test.jpg")
...
 

RippleView

The attached project comes from here (I have conducted some open heart surgery on it). It is working perfectly on my 7" tablet but on my Samsung S4 mini, unlike what is the case on my...
 

Attachments

  • b4aRippleView.zip
    38.2 KB · Views: 964
  • JavaCode.zip
    145.6 KB · Views: 849
Last edited:

COVID API

API for live information about COVID-19

##source##


B4X:
Sub covid

    Dim cov1 As HttpJob
    cov1.Initialize("GetAddress", Me)...
 

Attachments

  • cov.zip
    14.1 KB · Views: 519
  • Screenshot_1584876341.png
    Screenshot_1584876341.png
    8.4 KB · Views: 745
  • Screenshot_1584876347.png
    Screenshot_1584876347.png
    10.4 KB · Views: 812
  • Screenshot_1584895171.png
    Screenshot_1584895171.png
    18.2 KB · Views: 756
Last edited:

[B4X] B4XTable - Setting cell (default label) properties

Last edited:
Top