Tutorials & Examples

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

[B4X] [B4XPages] Firebase Push Example

Attachments

  • Push.zip
    7.3 KB · Views: 2,134

Subnet Scanner

Here is a simple subnet scanner. It scans the current class C subnet for a particular port number and tries to open a connection.

It logs all the IPs that are found to have that port open in a...
 

Attachments

  • Scanner Example.zip
    4.2 KB · Views: 611
Last edited:

intent for beginner - messages between apps

Part 1

1- Intent is exactly a Specific Message between Android Apps.
Building this message is simple in B4A:
B4X:
dim intent1 as intent

2- Any message (ie: intent) has a specific purpose...
 

EasyDeviceInfo (with inline Java Code)

It incorporates this Github project via inline java code. The project reports a whole lot of information about your device and write the results to the B4A log:

B4X:
** Activity (main)...
 

Attachments

  • b4aEasyDeviceInfo.zip
    15.5 KB · Views: 1,184

[B4X] Like Animation - smooth and beautiful transition

This is a simple like animation.
It looks smoother and better in real.
ezgif.com-video-to-gif.gif

LikeAnimation:
Private Sub LikeAnimation(xlbl As B4XView,duration As Int)
    Dim txt_size As Float = xlbl.TextSize
    If...
 

Attachments

  • Like Animation.zip
    9.8 KB · Views: 651
Last edited:

Read / Write Excel files on Android

The Excel library is a new library that wraps the open source jexcel project and allows you to read or write Excel workbooks. This library supports XLS files. The new xml based format (xslx) is...
 

Attachments

  • ExcelExample.zip
    12.8 KB · Views: 10,114
  • ExcelLibrary.zip
    13.1 KB · Views: 9,412
Last edited:

[B4X] Library Templates

Seeing the new Template feature, I thought I'd use it for the new libraries I create.
I created a Template that opens three folders (B4J, B4A, B4I) with the library.

In addition to...
 

Attachments

  • NewLibrary.b4xtemplate
    15.3 KB · Views: 636
Last edited:

[B4X] B4XPages enhanced example

In case anyone is interested I attach a modified version of Erels' ThreePagesExample for B4A only. It demonstrates the following enhancements.

1) B4XMainPage requests a Runtime permission.

2)...
 

Attachments

  • B4XPagesTest-B4A.zip
    40.8 KB · Views: 1,703

[B4X] [B4XPages] FirebasePush + FirebaseAuth

Today for the first time, I started messing with B4XPages and Firebase. Even though I had already watched B4XPages, I hadn't fumbled to understand better.
The hardest thing was Firebase...
 

Attachments

  • Firebase Message.zip
    129 KB · Views: 883
Last edited:

Google: Here are 4 reasons your Android app will get booted from the Play Store

[B4X] Sharing layouts between platforms

B4A BLE Example with Write

I have created an app to read and write to BLE devices. This is an extension of BLE_Examples.

In this example the scan lists all devices found. You connect to a device by selecting it in the...
 

Attachments

  • BLE.zip
    11.5 KB · Views: 1,569

set and get with more parameters

Now I have started a very big project and I came to the problem how to set and get more parameters.
Yesterday I spent the whole day looking for a solution on the forum how to set and get more than...
 

[WebViewExtras] send data: from WebView to B4X / from B4X to WebView [addJavascriptInterface] [CallSub]

addJavascriptInterface [WebViewExtras] CallSub [B4XPages] Example

I created a Example (after search and not found)

send data: from WebView to B4X / from B4X to WebView ,
using addJavascriptInterface and...
 
Last edited:

My Audit (Intent Based Camera and Expandable list based on CustomListView)

Attachments

  • audit.zip
    21 KB · Views: 497

Simple BlueTooth printing

First, someone post nice simple demo for bluetooth printing(BTPrint.zip) but unfortunately I can't find this again for giving credits, but who ever is , thanks.
Now, here is also demo based on...
 

Attachments

  • BlueSimple.zip
    11.5 KB · Views: 1,156

[Article] Demystifying the new Play In-App Review

@Pendrush recently introduced its wrap of the In-App Review Library.
After a rework, the solution now works great...
 

UltimateListView Image Grid Example

Attachments

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

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