Tutorials & Examples

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

B4A Book Updated to Version 8.30

B4A-324x400.jpg

I am happy to announce that the B4A tutorial and reference book "Rapid Android App Development using BASIC" by Wyken Seagrave has now...
 
Last edited:

Material Design 2 - Using the AppCompat library

Note: You should use B4A 6.0 or above for this tutorial.

In the first Material Design tutorial we created a simple app with Material Design for Android 5.0 (Lollipop) devices. But what about...
 

Attachments

  • AppCompatExample1_2.0.zip
    8.1 KB · Views: 2,458
  • AppCompatExample2_2_0.zip
    8.3 KB · Views: 2,939
Last edited:

Android Native Contacts Phone Number Picker

This is an example of choosing a phone number from native android contacts picker.
 

Attachments

  • nativeandroidphonenumberpicker.zip
    11.8 KB · Views: 575

[B4X] Working with GoogleTasks using REST

GoogleTasks are a Task list (ToDo List, Shopping List, whateveryouwant list)

In this small Tutorial i want to share my findings while i played around with GoogleTasks. In fact i´m not...
 
Last edited:

Easy Sample Translator inside a Code

I share this little code to handle translation within the app

upload_2018-12-28_16-48-19.png


regards
 

Attachments

  • translate.zip
    8.7 KB · Views: 736
Last edited:

Book for programming Pi, Arduino and more applications with B4A

Hi all,

I see a very nice book for programming PI, Arduino and more with B4A

I hope somebody like this...
 

No-IP Android client - Access your device over the internet

SS-2013-02-21_16.08.18.png


The following solution allows you to access your Android device over the internet. The device must be connected to a...
 

Attachments

  • DynamicIp.bas
    2 KB · Views: 2,868

Fill or Fit image to ImageView

Hi,

Here is how you can set the scale mode of an ImageView like CSS background-size property.

B4X:
'scale = cover,contain,fill
Public Sub SetImageView(iv As ImageView,bmp As Bitmap, scale As...
 

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:

MidiSystem Midi Monitor

This is the last example for now, it provides a midi monitor for messages based on the midi channel that the messages are played on.

It uses Informatix's wonderful accelerated surface to take...
 

Attachments

  • MidiMonitor.zip
    11.7 KB · Views: 756

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,287
  • SQLiteLight2_1.jpg
    SQLiteLight2_1.jpg
    41.1 KB · Views: 6,077
  • SQLiteLight2_2.jpg
    SQLiteLight2_2.jpg
    20.1 KB · Views: 5,417
  • SQLiteLight2_3.jpg
    SQLiteLight2_3.jpg
    16.4 KB · Views: 5,245
  • SQLiteLight2_4.jpg
    SQLiteLight2_4.jpg
    32.3 KB · Views: 5,642
  • SQLiteLight1.zip
    130.9 KB · Views: 486
  • SQLiteLight2.zip
    204.2 KB · Views: 437
  • SQLiteLight3.zip
    230.8 KB · Views: 418
  • SQLiteLight4.zip
    229 KB · Views: 451
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,848
  • ADR.DataBaseSample_1.6.zip
    9.3 KB · Views: 2,246
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: 589
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...
 
Top