Tutorials & Examples

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

MultiTrigger Soundpool Example

As a response to a forum question a few months ago, I posted an example of using the Gesture Library and Soundpool to create a musical instrument interface. The example is simple an has only two...
 

Attachments

  • MultiTriggerSoundTouchExample.zip
    28.2 KB · Views: 1,490
Last edited:

SQLite Database Pragmas

Pragmas: table_info, index_list, index_info, foreign_key_list

The full list of pragmas can be found at: http://www.sqlite.org/pragma.html. Note, the [match] field of the [foreign_key_list] pragma always shows...
 

Attachments

  • DBPragmas.zip
    323.1 KB · Views: 1,061
Last edited:

How I update my apps

I have a very specialized POS application running on Android devices that would not qualify to be entered into the Play Store. These apps need to be updated whenever there are new features or bug...
 

Downloading files using Service module

It is recommended to use HttpUtils2 instead of this code module. HttpUtils2 is more powerful and is easier to work with.

As discussed in the Services tutorial, some tasks are...
 

Attachments

  • DownloadService.zip
    6.9 KB · Views: 6,689

Retrieve HTML content from WebView using WebViewExtras library

Hello,
The code example below retrieves HTML content from WebView via three different techniques: 1.) MenuItem 2.) LongClick 3.) PageFinished. The code calls addJavascriptInterface() &...
 

Youtube master&slave

Hi,
I have assembled a few examples and I added the code to have a system to control via Bluetooth remote viewing of clips from youtube with two smartphones. A "slave" to be connected with a hdmi...
 

Attachments

  • Master.zip
    11.4 KB · Views: 480
  • Slave.zip
    10 KB · Views: 494
Last edited:

Create dynamic jpg using b4a and php

With this samplecode i will demonstrate to create a dynamic jpg from other image, put text´s on it, copy another image to it...

ATTENTION: This b4a-example uses CreateMap so you need B4A...
 

Attachments

  • Createjpgwithphp.zip
    9.2 KB · Views: 805
  • createimage.php_1.1.zip
    2.4 KB · Views: 790
Last edited:

RSAndEngine Tutorial


(Image belongs to Nicolas Gramlich)


It's almost here!
AndEngine for Basic4Android.
...
 
Last edited:

Android push notification (C2DM) framework and tutorial

How they do... #3

How do they... ? #3​

<Version française/french version>

This third tutorial returns to the interface of PlayerPro of BlastOn LLC. We are going to reproduce the artists list and...
 
Last edited:

Android Arkanoid game example

This is a "bare" arkanoid game:



The code is made of 4 modules:
Main - main activity. Also holds the main timer that is running the...
 

Attachments

  • Arkanoid.zip
    73.3 KB · Views: 2,863

How to Install Android x86 in a Virtual Machine using the VMWARE Player(free)

How they do... #1

How do they... ? #1

(French version/Version française)

This tutorial is the first in a series that will show you how to reproduce some user interfaces (UI) with the classes and...
 
Last edited:

ContactSearcher - Combines ContactsUtils with SearchView

This example uses SearchView to allow the user to search for any contact. The user can enter a substring of the contact name or one of his phone numbers.

This is a modified version of SearchView...
 

Attachments

  • ContactSearcher.zip
    11.1 KB · Views: 3,324

Git Version ID's: Getting Tags, Commits and Hash Info

To have the Git Version Info embedded in your B4A application it is necessary to do several steps.

1. Copy a batch file (gitv.bat) to a location in the path you are using.
2. Get and install the...
 

Attachments

  • GitVersionInfoForB4A.zip
    5.6 KB · Views: 445
  • asllc-gitversionnumberforb4a-447b30a1af20.zip
    12.5 KB · Views: 400
Last edited:

Guess my number - Visual designer & Events

FTP Example using a "Download-Queue"

It began in the english Forum.

In the english part of the forum i wrote an ftp example for @schimanski a few days ago which uses a "FTP Download Queue". all files are put into a list...
 

Attachments

  • ftpqueue.zip
    9.4 KB · Views: 1,403
Last edited:

How to read xml web service and store results into sqlite database

The attached example shows how to read any xml structure and store the results into a SQLite database table using a service

The example uses dbutils and a webview to show the results very...
 

Attachments

  • RssReader.png
    147.6 KB · Views: 1,209
  • savexToDb.zip
    13.6 KB · Views: 1,303

Two functions on arrays

Pending confirmation by Erel, I post three functions about arrays and maps that may be useful.

The first is to verify that an object variable is an array:
B4X:
Public Sub IsArray(Var As Object) As...
 
Last edited:

Displaying Math Formulas in pretty form

Hi,
I want to share with you one method to display math equations and formulas with a very good result without internet connection.I'm using it in one of my apps(in developing) and works fine with...
 

Attachments

  • SC20140211-014859.png
    30.3 KB · Views: 1,715
  • PrettyMathFormulas.zip
    327.5 KB · Views: 1,805
Last edited: