Tutorials & Examples

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

Convertir Numeros a Letras

B4A Convertidor de Numeros a Letras
 

Attachments

  • ConvLetras2.Zip
    425.1 KB · Views: 735

JumpingSmiley - GameView example III

Attachments

  • JumpingSmiley.zip
    27.7 KB · Views: 1,878
Last edited:

Simple Photogallery using a Scollview

hi,

this is a simple example that shows how you can use a scrollview and create a photo gallery.

(source code is included)

have fun :)
 

Attachments

  • ScrollView - B4A.zip
    49.9 KB · Views: 699
  • Screenshot_20181228-154021.jpg
    Screenshot_20181228-154021.jpg
    132 KB · Views: 932

Walkie Talkie - Audio streaming over Wifi or Bluetooth

This example implements a simple "walkie talkie".

270px-Wikipedia_images_011.jpg

(src: wikipedia)...
 

Attachments

  • Walkie-Talkie.zip
    10.7 KB · Views: 11,609

B4A Book Updated to Version 8.30

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,785
  • AppCompatExample2_2_0.zip
    8.3 KB · Views: 3,285
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: 755

[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: 908
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: 3,205

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:

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,633
  • SQLiteLight2_1.jpg
    SQLiteLight2_1.jpg
    41.1 KB · Views: 6,487
  • SQLiteLight2_2.jpg
    SQLiteLight2_2.jpg
    20.1 KB · Views: 5,909
  • SQLiteLight2_3.jpg
    SQLiteLight2_3.jpg
    16.4 KB · Views: 5,662
  • SQLiteLight2_4.jpg
    SQLiteLight2_4.jpg
    32.3 KB · Views: 6,064
  • SQLiteLight1.zip
    130.9 KB · Views: 874
  • SQLiteLight2.zip
    204.2 KB · Views: 764
  • SQLiteLight3.zip
    230.8 KB · Views: 751
  • SQLiteLight4.zip
    229 KB · Views: 788
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: 2,061
  • ADR.DataBaseSample_1.6.zip
    9.3 KB · Views: 2,440
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: 1,345
Last edited:
Top