Tutorials & Examples

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

Google Elevation API Service Code

Hi,

Further to a post I made in another thread. Below is a service code that can be called to get the elevation data from the google API.

B4X:
#Region  Service Attributes 
   #StartAtBoot...
 

Arduino ADK IDE Installation

Introduction

This tutorial deals with installing the Arduino IDE onto the PC and ensuring that we can compile a program. We are following the “Installing the Arduino software and necessary...
 
Last edited:

Convert you MySQL database to SQLite fast and simple (Linux / Debian 6 - ok)

Hi,

i would like to share a code to transform and compress a database of MySQL to SQLite. I use it in Cron (automated task) to create a clone of my main database. It's hard to find a real good...
 
Last edited:

The super quick way to knock-up a test app!

With thanks to NJDude who helped me with the designer script.

Say you have a function or a class that isn't working right and you need some help from the forums. Its a good idea to include a...
 

Attachments

  • QickTestApp.zip
    7.1 KB · Views: 676
Last edited:

Variables and Subs visibility

Basic4android v2.00 adds two new access modifiers: Public and Private.
This tutorial will cover the rules which determine when a variable or a sub can be accessed from outside.

Note that the...
 

The application failed to initialize properly

I have installed the trial (b4a-trial.exe 3215KB) on WinXP and get error :
"The application failed to initialize properly (0xc0000135)"
Can somebody help?
thks
 

byref mimic and performances

Hi all,
I've found and interesting article posted by Erel inside the "bugs & wishlist" section that deserves to be post in this section (and maybe as evidence article inside tutorials"). It deals...
 

Implode - Converting String Array to String

Needed this for my program, maybe it will be of some use to others, too:

B4X:
Sub Implode(glue As String, pieces() As String)
   Dim result As StringBuilder

   If pieces.Length = 0 Then Return ""...
 

Finding random RGB colors

In building apps, content and appearance are both important, as it is in the design of most everything.

Unique colors make your apps pop and look different from the run of the mill stuff out...
 

Attachments

  • rcol2.png
    rcol2.png
    38 KB · Views: 741
  • rcol3.png
    rcol3.png
    76.5 KB · Views: 604
  • rndColors.zip
    86.7 KB · Views: 786
Last edited:

How do I read the content of a basic web page into a text variable?

Super-fast alternative to emulator -> x86 Android

Hi all

*EDIT3*

For a much easier to set up and faster Android emulation please now look at this thread:

GeanyMotion...
 
Last edited:

B4A: Getting Started for Delphi Developers

B4A: Getting Started for Delphi Developers

Borland introduced the Delphi programming environment in 1995. At the time Delphi was a revolutionary new tool for Microsoft Windows-based application...
 

List folder content and show selected image.

Attached is a little program shows how to read a directory content, show the filenames in a listview, and showing an example of the selected image file in imageview.

Duplicated from the...
 

Attachments

  • ListviewDircontentImagebox.zip
    6.1 KB · Views: 1,890

Voice Recognition Example

Here's a quick example of voice recognition.
It just displays the results to the log window.
This example shows all the different recognized patterns that are returned by the Voice Module...
 
Last edited:

Core Documentation [UNOFFICIAL]

As a Development Team Leader, I like my code to be "just so". I also like my documentation to be "just so".
I am humble enough to know that I don't know everything, but I do know what I like...
 
Last edited:

Quick & Dirty Google V3 Reverse Gecoder

Send the following to HttpUtils or whatever:

B4X:
http://maps.googleapis.com/maps/api/geocode/xml?latlng=40.714224,-73.961452&sensor=false

Substituting the lat/lon as required...
 

Basic4android works on linux!

Hi everyone not sure where to post this but Basic4Android works on LinuxMint 11 :icon_clap: using VirtualBox (non opensource version) with XP SP2 installed (DotNet 2.0).

No problems at all...
 

B4A-Bridge and VirtualBox (Linux-host)

My OS of choice is Linux (Mint-11) so having to dual-boot out to Windows any time I wanted to run B4A was a pain. I tried running B4A via VBox, but when bridging to my android device I got a list...
 

Android - Virtualbox

Hi to all,

I´m not sure if this information is useful...
I was not satisfied with the emulator and started looking for something different.
At Redirection you can find readymade images...
 

Sorting algorithms - Teaching with Basic4android

Implementations of sorting algorithms are useful for teaching fundamental concepts such as algorithms analysis, complexity and data structures.

The following code includes implementations of the...
 
Last edited:
Top