Tutorials & Examples

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

For beginners: How to communicate with a server using httputils2 (Part 2: MySql)

Small update: I use Download2 instead of Poststring now. It handles some things for us like removing illegal space, etc. Otherwise some examples wont work as decribed.


Part 1...
 
Last edited:

[B4X] Create and use SQlite databases with "DB Browser"

I often use Sqlite for my apps and I came across "DB Browser". It's a free tool to browse and edit SQlite databases and tables. Download it from here: http://sqlitebrowser.org/ For B4J apps...
 

[B4X] Tip: Always set FTP.PassiveMode to True

I've just wasted an hour trying to understand why a desktop program that I'm using for many months failed to upload a file to a FTP server.
I realized that the only thing that was recently changed...
 
Last edited:

Android FTP tutorial

Last edited:

How to determine needed permissions from JavaObject code

Now and then there are JavaObject code snippets posted in the forum. Usually there are permissions required listed together with the code, but not always. Which could be because none are needed...
 

Dropbox SDK - get informed about changes in the used Dropbox

Related Libraries:
B4A Dropbox SDK V2
B4J Dropbox SDK V2

You need to know/remember the dropboxId of the account you are actually using/requesting. And the latest cursor.
Use...
 
Last edited:

TabHost tutorial

Last edited:

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

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:

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

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

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,409
  • ExpandableListView.zip
    10.3 KB · Views: 5,295

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,211
Last edited:

[B4X] Resumable subs that return values (ResumableSub)

Last edited:

Android "Kiosk mode" tutorial

Attachments

  • Kiosk.zip
    6.7 KB · Views: 6,027
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...
 
Top