Tutorials & Examples

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

How to fix the multiple native libraries problem

Error:
It might happen that, when combining multiple native (JNI) libraries, your Android app will crash with an UnsatisfiedLinkError.

Why does this happen?
Well...
 

Attachments

  • native-libs.pdf
    157.6 KB · Views: 440
Last edited:

Pebble Example

This is an example of how to build an app and sent intents to your pebble.
 

Attachments

  • PebbleExample.zip
    9.2 KB · Views: 407

Mashy's Overview

Last edited:

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: 490
Last edited:

[SMM] Top sites example

This example uses SimpleMediaManager to show a list of 400 top sites, based on Alexa dataset.

1633602625321.png


Each item is made of two panels and a label:
- Panel for the favicon.
- Panel for the...
 

Attachments

  • Project.zip
    231.5 KB · Views: 435
Last edited:

Social Network created by B4A (Chat included)





After searching all over the forum, I noticed that there are no examples that speak of a Social Network, so I decided to write one.

This example below...
 

B4A-Bridge and VirtualBox (Linux-host)

My OS of choice is Linux (Mint-11) so having to dual-boot out to Windows any time I wanted to run B4A was a pain. I tried running B4A via VBox, but when bridging to my android device I got a list...
 

Compass: TRUE HEADING & Magnetic Declination.

I am presenting a test project - Compass. Post #1
- displays TRUE HEADING with local magnetic declination.

Tested in parallel with the application AndroiTS GPS Test v.1.48 Free...
 

Attachments

  • Screenshot_2017-11-TrueHeading.png
    Screenshot_2017-11-TrueHeading.png
    60.4 KB · Views: 751
  • TRUE HEADING.zip
    276.2 KB · Views: 677
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: 566

Youtube master&slave

Hi,
I have assembled a few examples and I added the code to have a system to control via Bluetooth remote viewing of clips from youtube with two smartphones. A "slave" to be connected with a hdmi...
 

Attachments

  • Master.zip
    11.4 KB · Views: 345
  • Slave.zip
    10 KB · Views: 354
Last edited:

Service Module Example

Service Module using CallSub.

A very simple example. I thought you had to use CallSub from an Activity, but had it backwards.
 

Attachments

  • ServiceModule3.zip
    7.2 KB · Views: 692

B4a bridge via LAN

Just bought an Android TV box and I mentioned that you can connect to the bridge via LAN (usually WiFi). Even it shows "Not connected to wireless network" and doesn't show a ip address the...
 

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: 544

How do they ... ? #4 (FR)

Here's a link to my new tutorial (in french):
Comment font-ils ? #4

The translation by Google Translate in english is horrible. The translation by Bing Translator is much better.
 

Mirror device to windows

Hi
If you use your device with usb debugging in b4a,maybe you love to mirror your device monitor in windows look like other android emulator
Don't worry :D:D:D:D
I found Android mirror
With this...
 

Attachments

  • Archive.zip
    212.8 KB · Views: 374

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.txt
    4.1 KB · Views: 412
  • TestPHP.zip
    12.8 KB · Views: 88
Last edited:

WebViewExtras Examples for beginners

I noticed a lot of beginners are confused about how to use the WebViewExtras library so I made a detailed example.
If you find it useful, kindly consider buying me a coffee.

Code works on Android...
 

Attachments

  • WebViewExtras.zip
    12.5 KB · Views: 943
  • WebviewExtras2Example.zip
    7 KB · Views: 185
Last edited:

My first class module - Settings menu panel - Feedback please

2014-01-29_20-17-39.png 2014-01-29_20-17-33.png Hi,

For an app i'm working on I've created this settings menu class. Currently it is used to set a global value called language in the main activity. Of course you...
 

Attachments

  • settings_menu.zip
    8.5 KB · Views: 499
Last edited:

How to use ABPhysicsEngine and GameSprite View together

Hi

I would like to share with you this small example on how to use ABPhysicsEngine and GameSprite View together.

I would like to thanks the authors for those greate libraries...
 

Attachments

  • theProject.zip
    145.3 KB · Views: 584
Last edited:

PC-ANSI encoding on B4A ...

Hi,

normaly B4A use UTF8 encoding, but can create files in ANSI too, but be carefull !
Windows an a Western PC use ANSI codepage 1252, this is in B4A "WINDOWS-1252".
Mostly the encoding...
 
Top