Tutorials & Examples

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

(old) Google Maps Android v2 tutorial

Attachments

  • GoogleMaps.zip
    17.8 KB · Views: 11,594
Last edited:

EdditText Label Like SnapChat

VidSpeed1506694593792_1-iloveimg-resized.gif

Hello,

UPDATE

This version includes Multiline Support and Guaranteed functionality. The last version had a lot of bugs, that new example is more mature.


At the moment, I'm...
 
Last edited:

Creating a sticky service - long running background tasks

Edit: Things have changed with newer versions of Android and new restrictions. Sticky services should not be used any more.

Background service example...
 
Last edited:

B4A -interpreter for Android / programming on the device

B4A-Interpreter

I've made a B4A interpreter that runs B4A-Code on Android
to write easy B4A-test programs on my Phone.
To make an app only copy the source code back to the...
 

Attachments

  • androidb4a.zip
    8 KB · Views: 753
  • androidb4a2_7.zip
    7.3 KB · Views: 768
  • B4AInterpreter0_3.zip
    354.4 KB · Views: 958
  • B4Ainterpreter0_4.zip
    355.2 KB · Views: 674
Last edited:

Scrollview: Adding labels and setting their height automatically depending on the text(size)

This is just a simple example (and yes, there are others doing similar). You can modify this example it by using other colors, gradients, adding other views and so on to have a simple but good...
 

Firebase Invites/ DynamicLink/ DeepLink [relationship between]

Firebase has several extremely useful free server-based features for developers of mobile apps.
The free "Spark Plan" is suitable for small business applications.​
...
 
Last edited:

Horizontal ScrollPage

Hi everybody!
I want to share this simple example of an HorizontalScrollView that works like ViewPager. Main difference between this and ViewPager is that HorizzontalScrollview has an only inner...
 

Attachments

  • HorizzontalScrollPage.zip
    7.1 KB · Views: 643

Android In-App Billing v3 Tutorial

Last edited:

Third party tool for screen recording

I'm mostly using B4A-Bridge to connect the IDE to the Android devices. The built-in video recording feature doesn't work with B4A-Bridge.

I found a good alternative...
 

Programmatically Setting AIRPLANE_MODE_ON and Off

ScrollView example

The ScrollView is a very useful container which allows you to show many other views on a small screen.
The ScrollView holds an inner panel view which actually contains the other views.
The user...
 

OCR OFFLINE - Tesseract

I'm working in a project that needs OCR offline. Made a small progress and decided to share here and get some feedback.
I've searched a little bit at this forum and google about it. Found options...
 

Attachments

  • tessTest.zip
    11.9 KB · Views: 1,802
Last edited:

DJI app java object to start video recording

This starts recording video with your dji app

B4X:
'put this in process globals

   Dim AircraftInstance As JavaObject
  

    Dim CameraInstance As JavaObject


'Put this in AfterAircraftConnected...
 

SQL Fiddle

There is a very useful online tool called SQL Fiddle that allows you to build test tables, populate them with data & run queries on them. This is great if you are trying to figure out how...
 

Using a PlayStation 3 controller with your Android Device

Using a PlayStation 3 controller with your Android Device
This tutorial is an extension of the B4A Generic Gamepad Support thread.

As you can...
 
Last edited:

Using Procedure in rdc Server

Hello Every Who can not know to use procedure with rdc there are two ways To do that

the first one is use Call keyword like this
B4X:
sql.getcategoryproducts=Call Getprodbycat(?)

this way...
 

Adding Tripod Mode to your DJI Mobile app

Adding Tripod Mode to your DJI Mobile app



Tripod mode for DJI drones, limits the speed of your drone to around 2 mph. So you're less
likely to hit something, when your in confined spaces, or...
 
Last edited:

B4A-Bridge a new way to connect to your device

There are several options to develop with B4A:
- Android emulator or a VM.
- Connect to a real device in USB debugging mode
- Connect to a real device with B4A-Bridge.

I recommend starting with...
 

Attachments

  • upload_2016-9-29_9-29-57.png
    upload_2016-9-29_9-29-57.png
    14.3 KB · Views: 6,267
Last edited:

Upload image to server, PostMultipart and PHP

A small example like loading an image with PostMultipart and PHP, I have been useful, you can adapt it needs.

Code B4A
B4X:
Sub CargaImagen
    Dim j As HttpJob
    Dim img As String =...
 
Last edited:

[B4A] MsMariaDb with Resumable Subs

Hi all,

I was looking into 'de-spaghettifying' my code that uses @DonManfred 's MsMariaDb...
 
Top