Tutorials & Examples

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

OAuth 2.0 / Google web services tutorial

This tutorial is no longer relevant. Google doesn't allow using WebView to access the server response. Updated tutorial...
 

Attachments

  • GmailContacts.zip
    8.1 KB · Views: 1,191
Last edited:

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:

A THANK YOU.. example in humility

:)

I just wanted to say thank you. I am new to coding:D, and trying to learn it. There is a lot of useful information if you search and dig for it.. no pain no gain LOL

Also some cool guys I...
 

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

GameView - Create 2D Android games - Part II

Attachments

  • Asteroids.zip
    253.3 KB · Views: 4,417
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: 923

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,635
  • B4J-InlineJava.zip
    1.2 KB · Views: 3,031
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:

Important: Phone energy settings!

I had some issues with one of my apps receiving FCM messages correctly (when the phone was off and when it was swiped away/killed by the user). The other day I had a problem with my Google...
 

Using MFColorMatrix (from my MFLib)

A short description using the MFColorMatrix class from my MFLib.

A color matrix is a 4x5 matrix for transforming the color and alpha components of a Bitmap.
The definition of...
 

Parse JSON Weather Files from openweathermap.org

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,478
Top