Tutorials & Examples

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

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

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

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,232
  • SQLiteLight2_1.jpg
    SQLiteLight2_1.jpg
    41.1 KB · Views: 6,028
  • SQLiteLight2_2.jpg
    SQLiteLight2_2.jpg
    20.1 KB · Views: 5,358
  • SQLiteLight2_3.jpg
    SQLiteLight2_3.jpg
    16.4 KB · Views: 5,200
  • SQLiteLight2_4.jpg
    SQLiteLight2_4.jpg
    32.3 KB · Views: 5,590
  • SQLiteLight1.zip
    130.9 KB · Views: 446
  • SQLiteLight2.zip
    204.2 KB · Views: 395
  • SQLiteLight3.zip
    230.8 KB · Views: 376
  • SQLiteLight4.zip
    229 KB · Views: 411
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,830
  • ADR.DataBaseSample_1.6.zip
    9.3 KB · Views: 2,229
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: 563
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,184

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

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

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

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