Tutorials & Examples

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

Graphics ListView with 2 images, two labels and populated from a text file.

I wanted to provide this simple code for beginners like me.
The code is derived from the one written by the my teacher Klaus here.

This ListView is made with a ScrollView inside of which is...
 

Attachments

  • list viewex.zip
    109.6 KB · Views: 943
  • Screenshot_2014-05-19-22-05.png
    Screenshot_2014-05-19-22-05.png
    164.8 KB · Views: 921
Last edited:

Midi USB device manager

The attached project shows the use of the USB library to communicate with Midi Devices over USB. I realize that this may open a can of worms, as it seems nothing about Midi communication is...
 

Attachments

  • USBMidiTest3.zip
    13.7 KB · Views: 771
  • USBMidiTest3-B4a3.2.zip
    13.5 KB · Views: 665
Last edited:

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,326
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: 902
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...
 

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: 353
  • Slave.zip
    10 KB · Views: 362
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,093

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,257
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
    RssReader.png
    147.6 KB · Views: 1,088
  • savexToDb.zip
    13.6 KB · Views: 1,139

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:

Wrapping for functionality

This post is aimed at those who may be new to programming concepts as well as b4a.

There are a lot of posts on the forum about wrapping java libraries for use with B4a, but that's not the only...
 

Attachments

  • MsgBoxWrapper.zip
    10.9 KB · Views: 417
Last edited:

Duck Typing and Command Design Pattern Example

I hope I have got this example right. Any positive criticism or improvements will be welcome!
I have made this to try learn and understand how this all works. This could also help others to...
 

Attachments

  • DuckTypingCommandPattern.zip
    10.2 KB · Views: 430

My first class module - Settings menu panel - Feedback please

2014-01-29_20-17-39.png 2014-01-29_20-17-33.png Hi,

For an app i'm working on I've created this settings menu class. Currently it is used to set a global value called language in the main activity. Of course you...
 

Attachments

  • settings_menu.zip
    8.5 KB · Views: 504
Last edited:

Moving Things

I'm just playing but play along with me, here's a very simple B4a project which you can load up.

Please change it and post your version here.

I like to move it move it.

ian
 

Attachments

  • MoveThings.zip
    7.8 KB · Views: 544

How to connect iMpulse Controller to your App

You can find Game controllers as iMpulse Controller.
It works by Bluetooth. So your App can have remote control
http://www.impulsecontroller.com/

This device need Android 4 or higer...
 

Send Text File using BlueTooth

I needed to send a text file created by my program to a users PC using Bluetooth.
Not finding anything exactly like this in the B4A forums I searched the web and came across this article...
 

Instruction set , commands?

I have buy b4android book and also the compiler.
I search the site, and the book of course,but I can not find the commands for compiler in one place like a list with a description what do each...
 

Simple Socket Class

Hi All

I have created a simple socket class for a project we a doing. Thought I might share it. Hopefully it will be of use to others.

Regards

John.

B4X:
Type=Class
Version=2.71...
 

Attachments

  • sockets.bas
    3 KB · Views: 662
Last edited:
Top