Tutorials & Examples

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

[B4X] [XUI] Creating custom views with XUI

Attachments

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

[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,390
  • ExpandableListView.zip
    10.3 KB · Views: 5,284

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,194
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,000
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: 876
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...
 

[B4x]Data exchange (B4x, php, servers, .net and others)

After some years I have developed several apps to communicate with other apps, servers and platforms. My goal was to have ONE standard solution without additional propriatary solutions which work...
 

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

Integrating Firebase Services

Google has acquired a company named Firebase and is now offering many backend services under the Firebase umbrella. Most of them are free.

Integrating the services is relatively simple.

1. Use...
 
Last edited:

GPS Status in the OsmAnd - vs - GPS Connected.

Hello.
Probably the majority of using GPS, wondered how to display the GPS Status in OsmAnd:

So,
wanting to display the GPS Status in the OsmAnd 2.9.3 application, publication date 2018-02-08
the...
 

Attachments

  • Screenshot_01.png
    Screenshot_01.png
    45.4 KB · Views: 830
  • GPS Connected.apk
    423.6 KB · Views: 581
Last edited:

B4A how to learn it in 1 day

Watch the b4x Video Tutorials with interactive zoom

if you're having problems with the resolution, or your age ( :( ) and you see the code too small ,try to use this tricky feature in VLC Player called "interactive zoom"

you can see all code...
 
Last edited:

Persistent log for IDE (developer) or APP (user)

I write for me, and share.
Add functionality to a log and logcolor functions.
Easy to implement.
Source Code for enhance or fix.
CSBuilder, TextWriter & TextReader implementation.



B4X:
...
 

Attachments

  • wlog.zip
    401.1 KB · Views: 468

Signing your application before uploading to Google Play

The result of compiling your application is an APK file. This is a package file that contains the compiled source code and the assets files.
The APK file must be signed before installation...
 
Top