Tutorials & Examples

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

B4A Beginners Guide

This guide is obsolete ! It is no more updated.
Please use the B4X Booklets.


Here is a Beginner's Guide in pdf format.
The source code for the example programs is included.

All...
 
Last edited:

Google Play App Signing

Google Play App Signing service allows developers to let Google store the app signing key for them.
Developers need to use a different key, the upload key, to sign the app before release.
The...
 
Last edited:

SQLiteLight four simple SQLite projects

Some users asked here for a simple SQLite project as an example to make their first steps in SQLite.
The already existing examples seem beeing somewhat complicated for beginners.

These...
 

Attachments

  • SQLiteLight1.jpg
    SQLiteLight1.jpg
    18.6 KB · Views: 6,549
  • SQLiteLight2_1.jpg
    SQLiteLight2_1.jpg
    41.1 KB · Views: 6,351
  • SQLiteLight2_2.jpg
    SQLiteLight2_2.jpg
    20.1 KB · Views: 5,760
  • SQLiteLight2_3.jpg
    SQLiteLight2_3.jpg
    16.4 KB · Views: 5,519
  • SQLiteLight2_4.jpg
    SQLiteLight2_4.jpg
    32.3 KB · Views: 5,938
  • SQLiteLight1.zip
    130.9 KB · Views: 769
  • SQLiteLight2.zip
    204.2 KB · Views: 672
  • SQLiteLight3.zip
    230.8 KB · Views: 647
  • SQLiteLight4.zip
    229 KB · Views: 669
Last edited:

Running shell commands as SuperUser

if you want run any shell command as superuser(you must have rooted phone), try this:
B4X:
Dim Command, Runner As String
Dim StdOut, StdErr As StringBuilder
Dim Result As Int
Dim Ph As Phone...
 

New Easy to Use DataBase Functions V1.0 with Samples

Attachments

  • ADR.DataBaseProgram_1.5.zip
    12.6 KB · Views: 1,997
  • ADR.DataBaseSample_1.6.zip
    9.3 KB · Views: 2,384
Last edited:

[B4X] [XUI] Expandable list based on xCustomListView

Last edited:

Runtime Permissions (Android 6.0+ Permissions)

1. Edit: In B4XPages the permission result event signature is: Wait For B4XPage_PermissionResult (Permission As String, Result As Boolean)
2. Important to read...
 
Last edited:

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

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...
 

CharSequence / CSBuilder Tutorial

B4A v6.80 adds several new features related to the ability to format rich strings.

upload_2017-2-14_12-30-39-png.52855


CharSequence is a...
 
Last edited:

Solution for: Google Sign In Error 12500 x Internal Testing

The problem: If anyone is using the Google Play's Internal Testing feature to make your app available for selected users, be aware that Google changes the app and therefore the APK signature...
 

[B4X] [BitmapCreator] Creating cross platform games

Last edited:

Gnss Status Updates

Starting from Android 7 we can extract more information about the satellite navigation status.
GPS is the first satellites system (the American system). There are several more systems now...
 

Attachments

  • GnssStatus.zip
    10.1 KB · Views: 1,433

[B4X] Clipper FoxPro Xbase++ Functions

When I started again developing in B4A, I looked around my developed desktop applications to make something similar, as I will know what the result should be.

I choose my small attendance program...
 

Attachments

  • Clipper FoxPro Xbase Functions.txt
    1.7 KB · Views: 770

Bomb Countdown Example

Hi all.
I found this example in some old folders on my pc and decided to share here.
it is a simple Bomb Countdown with timer, sound and vibration.

I think the most important here is the...
 

Attachments

  • contador.zip
    135.3 KB · Views: 897

BLE - Heart Rate Monitor

HeartRateMonitor class searches for peripherals with the heart rate service (0x180D).

Once a peripheral device is found and connected then a notification is set for the heart rate measurement...
 

Attachments

  • HeartRateMonitor.bas
    1.9 KB · Views: 2,775

IDE Tip: Alt + N = Recent subs menu

Not sure how many developers are familiar with the list of recent subs:

SS-2018-10-22_15.39.07.png


You can open it with Alt + N.
It is very useful...
 

Left menu layout examples (jfeinstein10)

Hi all.
I found this example in some old folders on my pc and decided to share here.
it is a simple layout example of SlidingMenu

this example use this lib...
 

Tabela Fipe Api (Brasil Cars, Trucks and Motorcycles prices)

Hi all.
I found this example in some old folders on my pc and decided to share here.
it is a simple example of how consume a api with http.

Fipe is a organization with control of cars...
 

Attachments

  • consultafipe.zip
    262.8 KB · Views: 571

Simple Currency Api (Brazilian)

Hi all.
I found this example in some old folders on my pc and decided to share here.
it is a simple example of how to get values from a website, on this example we get the bitcoin and dolar...
 

Attachments

  • bitcoin.zip
    48.1 KB · Views: 631
Top