Tutorials & Examples

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

Android shake event with PhoneSensors

Using the phone accelerometer it is possible to handle shake events.
The problem is of course to decide if the stream of values represents a shake.

The Shake code module finds shake patterns and...
 

Attachments

  • Shake.zip
    27.9 KB · Views: 3,669

followed mission for dji phantom 3 standard & DJIV2.5 library

followed_mission for dji phantom 3 standard DJIV2.5 library
 

Attachments

  • followed_mission.zip
    90.3 KB · Views: 470
  • DJIV2.5.zip
    82.8 KB · Views: 446

HttpUtils2/PHP: GET vs POST methods

Of course there is more about to secure data transmissions between clients & servers. Please take this tutorial to think about to secure your communication as good as you can.


With...
 

Intent Filters - Intercepting SMS messages in the background

Old tutorial. Don't use services. Use receivers.
Broadcast receivers are program components that can handle broadcasted messages. These messages usually notify about a system event.

There...
 
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:

Java 10 - B4A SDK Manager fix

As stated on THIS thread, the current SDK Manager (3.20) will display an error, to fix it, you will have to recompile it using the source code posted HERE and modify line 158

From...
 
Last edited:

Inputlist with images

hi

for one of my project, i needed an input list that includes images and i was thinking of using clv for that, but i really wanted to use the native input list so with CSBuilder it is very...
 

Attachments

  • InputListImage.zip
    15.1 KB · Views: 1,082
Last edited:

Wrapping Kotlin code and libraries for B4A

In this thread, I am publishing a series of 3 videos to show you how you can wrap Kotlin code and libraries to be used within your B4A-projects.

In order to really appreciate the content, you...
 
Last edited:

[B4X] [XUI] Creating custom views with XUI

Attachments

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

[B4X] Database modelling

This tutorial is about db modelling with a small example. Of course this is just an overwiew and there is much more. I assume you know how to create tables and Co.

Databases

A db is a...
 

Retrieve one or multiple image(s) shared to your app

With this code you can retrieve images shared to your app (e.g. if a user selects one or more images from the gallery and selects "Share..."). No permissions are required as the user selects the...
 
Last edited:

Convert Integer to DIP

Saw a request for this so I thought I'd share. Below you will find a way of converting an integer to a DIP (Density Independent Pixel). This may be useful in situations where you have a variable...
 
Last edited by a moderator:

Custom Expandable ListView

This code is an example of creating an expandable listview using a scrollview.
The layout of each item in the list is created in code and is customizable on a per item basis.
The example is...
 

Attachments

  • expandablelv.png
    expandablelv.png
    8.5 KB · Views: 21,478
  • ExpandableListView.zip
    10.3 KB · Views: 5,335

Android SQLite Viewer

SQLite Viewer is an open source application that allows you to view the contents of SQLite databases right from your Android device...
 

Attachments

  • SQLiteViewer.zip
    15.1 KB · Views: 3,261
Last edited:

In-App billing Server side verification

Hi to all! I want to post a small example to verify the signature of an in-app purchase, in order to avoid the use of application like Freedom and Lucky Patcher.
An important note is that this...
 
Last edited:

[B4X] Resumable subs that return values (ResumableSub)

Last edited:

Android "Kiosk mode" tutorial

Attachments

  • Kiosk.zip
    6.7 KB · Views: 6,097
Last edited:

3D Interactive Starfield using only the Core library

Hey guys!!

I took this HTML5 example and adapted it to B4A.

I hope the code is self-explanatory, if not, I'll be here to help.
Once again I'm using panels, but you can use whatever...
 

Attachments

  • Starfield Example.zip
    7.7 KB · Views: 902
Last edited:

B4A bridge & B4A designer: Create a WIFI Spot with your computer.

Hello,

I was facing a problem to use B4A bridge because I'm connected to a LAN without WIFI.
I found a solution to make my computer a WIFI spot and then use B4A bridge & B4A designer Wireless...
 

Corso B4A crea una app col tuo sito web

Ciao a tutti, ho creato un corso in italiano su piattaforma B4A per creare una app con un sito web, il corso è per principianti e guida l'utente dal download e l'impostazione di B4A, del JDK e...
 
Top