Tutorials & Examples

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

MultiDex - Solves the too many methods error

B4A v6.8 adds support for MultiDex compilation.

Enabling MultiDex:
B4X:
'main module
#MultiDex: True

With MultiDex enabled, the compiled classes are split into multiple dex files as needed...
 
Last edited:

Video for b4a

Hi sir and maam :) I have a problem about our program. We need to put a video clips on it. Is there a tutorial or codes that can use to put a video on B4A Project? Thanks in advance :)
 

Theme based on version Tutorial

What is this?
As the title suggests, this tutorial shows you how to select an android theme based on what version of Android your app is run on.

Why do I need this?
You don't, but...
 
Last edited:

Create better Play Store listings

Slowly but surely, the official app stores of iTunes, Google Play, and Windows Phone Marketplace have transformed into a digital battlefield. App developers have to fight for recognition or...
 

Conditional Compilation & Build Configurations

B4A v3.80 adds support for conditional compilation.

From Wikipedia:
In computer programming, conditional compilation is compilation implementing methods which allow the compiler to...
 
Last edited:

receive/send SMS while my phone is off

Hi experts,

This looks silly question but is it possible that I can receive/send a SMS while my phone is off using a program on a computer? And if it is possible what program or how to create a...
 

How I wrapped a HTML5, JavaScript & Css based Library...

Hi there..

Eye Candy

To be able to do this, you need a good library that you want to wrap. A library like this will run inside a webview as its purely javascript, so some knowledge of...
 

Attachments

  • JarFileLoader.bas
    2.3 KB · Views: 848
Last edited:

Remote Database Connector (RDC) - Connect to any remote DB

Last edited:

B4A Book Updated to Version 6.50

B4A-324x400.jpg

I am happy to announce that the B4A tutorial and reference book "Rapid Android App Development using BASIC" by Wyken Seagrave has now...
 

Android SlidingPanels - Simple way to create sliding layouts

This is an old tutorial. There are now simpler and better ways to achieve this effect.

For example...
 

Attachments

  • SlidingPanels.zip
    6.9 KB · Views: 10,256
Last edited:

GameView - Create 2D Android games - Part II

Attachments

  • Asteroids.zip
    253.3 KB · Views: 4,374
Last edited:

Google Place

This is a simple tutorial on how to search a place using Google Place API and with you keyword.
Hope this can help for those who are confused... Like ME :):):)

First you need an API Key(Browser...
 

Attachments

  • Tut.Google.Places.zip
    7.9 KB · Views: 906

Inline Java Code

The next versions of B4A (4.30) and B4J (2.80) will allow you to embed Java code inside your B4X code. B4i supports similar feature with Objective C.

The purpose of this feature is to make it...
 

Attachments

  • InlineJava.zip
    12.7 KB · Views: 4,587
  • B4J-InlineJava.zip
    1.2 KB · Views: 3,007
Last edited:

httputils2: Send a large array as a JSON string via Job.Download2 to a php script

EDIT: Use the PostString method as it can carry more data (5 MB is ok - it's a server parameter). Download2 uses the "get-method" which is limited. To retrieve the data in php use:

B4X:
$json...
 
Last edited:

Android Sip / Voip tutorial

With the new Sip library you can make audio calls using Voip (Voice over IP) services.
Sip features were added in Android 2.3 (API level 9). Note that not all devices above Android 2.3 support Sip...
 

Attachments

  • Sip.zip
    6.9 KB · Views: 11,443

Material Design 1 - Basics

Note: You should use B4A 6.0 or above for this tutorial.

Android 5.0 (also called "Lollipop") introduced a new design for apps called "Material Design".

With this tutorial series I will...
 

Attachments

  • SimpleMaterialExample2_0.zip
    8 KB · Views: 2,285
Last edited:

Dropbox SDK V2 - Uploading big files to Dropbox

This Tutorial will show you all needed Code to do Uploads to Dropbox.

Requirement for this tutorial: you need to have your App Dropbox-ready (see Tutorial I - Authentification).

Asuming...
 
Last edited:

[B4X][OOP] Generic Sorter

The Sorter class uses quick sort algorithm to sort a list of objects.

There are exactly three assumptions about the list items:
1. All the items in the list are of the same type (or each item can...
 

Attachments

  • Sorter.zip
    8.2 KB · Views: 764

SQL tutorial here

Alternative to B4A Bridge: USB Cable Connection

Step 1: On your mobile device, make sure you have USB Debugging activated.
- Go to "Settings".
- Scroll down to the bottom and tap "About phone" or "About tablet",
- Scroll down to the...
 
Last edited:
Top