Tutorials & Examples

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

[B4X] How to get <custom view here> from <CLV or any other container>

This is a common question and for a good reason.

Custom views classes are not views by themselves.
The views tree only holds views.
This means that this code cannot work:
B4X:
Dim...
 
Last edited:

MapsDecodePolyline

Hello!

As already told in another thread, i'm working on a navigation app using Google Maps API in combination with Google Directions http-requests for routing.

The http-Requests looks as...
 

List folder content and show selected image.

Attached is a little program shows how to read a directory content, show the filenames in a listview, and showing an example of the selected image file in imageview.

Duplicated from the...
 

Attachments

  • ListviewDircontentImagebox.zip
    6.1 KB · Views: 1,716

The result of swiping an app from the recent apps list

One of the new features of Android 4 is the more powerful recent apps list. The user can remove tasks or applications from the list with a swipe gesture.

The result of this action is not fully...
 
Last edited:

How to write a tasker plugin

Tutorial of connecting Android to MS SQL Server using jRDC2

Hi

Here is a tutorial that shows the steps of how to make an Android connection to MS SQL Server using jRDC2.

Download tutorial here:
Attached the Mobile...
 

Attachments

  • Example B4A.zip
    10.4 KB · Views: 1,828
  • jRDC SQL Server.zip
    5.2 KB · Views: 1,696
  • Script TestSQLServer.txt
    857 bytes · Views: 1,566

OpenCV real time car detection examples, by @moster67 (and friends)

This is a full working example of real time ObjectDetection (in this case, cars) using cascadeClassifiers, getting the input from a recorded video file, making use of Videocapture. The example was...
 
Last edited:

[B4X] [XUI] Creating custom views with XUI

Attachments

  • ClockView.bas
    1.4 KB · Views: 1,107

[B4X] B4XImageView - ImageView + resize modes

B4XImageView is a new custom view, added to XUI Views v2.40.

It adds several useful resize modes to the standard ImageView:

1597820737069.png


(Images source...
 

Attachments

  • Example.zip
    352.5 KB · Views: 2,909

Displaying Animated GIF

Hi, How do I display a animated GIF?
Now it just shows up as a static image.
 

Listview Divider Line Color

How can i define the Color of the horizontal Lines between Listview Items?
 

[B4X] B4XPlusMinus - Spinner / wheel alternative

Attachments

  • B4XPlusMinusExample.zip
    11.8 KB · Views: 1,791

Wrapping a small and easy 3rd party library with java

Attachments

  • 1.Original.zip
    179.4 KB · Views: 861
  • 2.Find the main source folder.zip
    3.4 KB · Views: 738
  • 3. use Rgenerator.zip
    3.1 KB · Views: 775
  • 4.Cleanup.zip
    2.9 KB · Views: 709
  • 5.Start of a new Eclipse-project.zip
    13.4 KB · Views: 711
  • 6.Working in Eclipse.zip
    91.7 KB · Views: 739
  • 7.New Wrapper.zip
    20.1 KB · Views: 751
  • 9.Resulting Library.zip
    5.2 KB · Views: 700
  • 10.Example CircularButtonEx.zip
    12.1 KB · Views: 725

[B4X] Drawing with BitmapCreator

BitmapCreator (BC) continues to evolve. Version 4.5 update is a large update with several new drawing features.

Background

At its core BC holds an array of bytes that represent an image...
 
Last edited:

[B4X] The Networker's Guide To The Galaxy


The purpose of this tutorial is to cover the various communication options available for B4X developers.

Will start with two important utilities:
 

jarsigner error: java.security.SignatureException: private key algorithm is not compatible

Private sign keys created with B4A v7.80 or less together with Java 8u151+ will fail with the above error message. Note that it does not affect existing keys.
It is related to a change in the...
 

Trial Tutorial

Hey everyone,

Here I will explain how you can make an evaluation/trial version of your app using an online database.
With this, the user will be able to open up the app x times. When 0 is...
 

Attachments

  • ServerPHP.zip
    739 bytes · Views: 731
Last edited:

FirebaseAdMob - Rewarded video ads

Edit: Google AdMob does support rewarded ads without mediation.
You can use this unit id to test it: rewardAd.LoadAd("ca-app-pub-3940256099942544/5224354917")
Make sure to use FirebaseAdMob...
 
Last edited:

[B4X] B4XPages + B4XDrawer

B4XDrawer v1.53 adds support for B4J. This is a good opportunity to create a B4XPages example using B4XDrawer.
It does require some configuration so pay attention.

1594908342696.png


The example is...
 

Attachments

  • 3 pages + drawer.zip
    191.7 KB · Views: 3,266
Last edited:

Receiving shared images from other apps

This example shows how to create an app that can act as a sharing target. It will be listed in the list of apps that show when the user shares an image.

The first step is to add an intent filter...
 
Top