Tutorials & Examples

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

Prevent accidental clicks

I had issues when i did an animation like clicking on a button and shrink it that if you click twice on it it will perform 2 times or more the animation you want to do or if you start a task that...
 

Immersive Mode with Notch area support

Attachments

  • ImmersiveMode_With_Notch_Area_Support.zip
    9.5 KB · Views: 1,008
Last edited:

Changing the theme at runtime

Using the hooks feature it is possible to change the Activity theme at runtime.

The theme is set before the activity is actually shown. This means that in order to change the theme we need to...
 

Attachments

  • ThemeChange.zip
    8.5 KB · Views: 1,848
Last edited:

FirebaseAdMob and User Consent

Last edited:

JumpingSmiley - GameView example III

Attachments

  • JumpingSmiley.zip
    27.7 KB · Views: 1,763
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: 640
  • Screenshot_20181228-154021.jpg
    Screenshot_20181228-154021.jpg
    132 KB · Views: 830

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,428

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,638
  • AppCompatExample2_2_0.zip
    8.3 KB · Views: 3,139
Last edited:

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

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,036

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:

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,961
  • ADR.DataBaseSample_1.6.zip
    9.3 KB · Views: 2,356
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: 784
Last edited:
Top