Tutorials & Examples

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

OUYA-specific tweaks

Your apps will run on OUYA just fine, normally.

It has no sensors. This includes microphone (so no voice recognition), gyroscope, compass, accelerometers, orientation, light. It has nada. It...
 

Adding an animated gif to your app

Ya can do it like this.

Add a webview to your design, lets call it WebView1

make a file initially called whatever, banner1.txt in the Files folder of your project open it in notepad and write...
 
Last edited:

Don't forget JonPMs live chat for instant help!

Very kind of JonPM to provide us with this, there are nearly always helpful people on this live chat who can help you with your problems instantly!

B4A Chat
 

B4a projects source code.

Hi everyone,

For the last 10 hours, I browsed every threads in "Share your creations" because I wanted to gather a lot of source code. About 1/6 of the posts actually have source code shared...
 
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: 516
Last edited:

Tick Tock Test Timers Class

Works fine but the timer keeps cutting off in my rather big and complex app.... oh well I'll have to figure that out then.

Still perhaps useful to some.

You send it a number of milliseconds like...
 

Attachments

  • TickTockTest.zip
    8.3 KB · Views: 621
Last edited:

Instead of Label, consider a HorizontalScrollView

Hello,


I'm here to convince you to use HorizontalScrollViews instead of labels in your interfaces.


Labels get messy when you need them to display a string of indeterminate length within a...
 
Last edited:

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
 

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:

Custom View with Designer Support

Last edited:

Compiler Warnings

Starting from v2.70, Basic4android includes a warning engine. The purpose of the warning engine is to find potential programming mistakes as soon as possible.

The warning engine runs whenever you...
 

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...
 

Arduino ADK Coda

Introduction

This final tutorial has some explanatory comments about the two programs running on the Arduino and the Android device. Those programs should be largely self-explanatory as...
 
Last edited:

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:

The result of swiping an app from the recent apps list

One of the new features of Android 4 is the more powerful recent apps list. The user can remove tasks or applications from the list with a swipe gesture.

The result of this action is not fully...
 
Last edited:

Arduino ADk Consummation

Introduction

The big day has dawned at last. We are now going to connect our Arduino to our Android device and get the two to talk to each other and to their own IDE on the PC...
 

Attachments

  • AdruinoADK.zip
    8.6 KB · Views: 1,395
Last edited:

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: 309
  • asllc-gitversionnumberforb4a-447b30a1af20.zip
    12.5 KB · Views: 277
Last edited:

Arduino ADK Programming

Introduction

This tutorial deals with connecting the Arduino to your PC and ensuring that we can run programs on it. It includes a brief description of the programming language for the...
 
Last edited:

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:

Arduino ADK Introduction

Introduction

This is one of a series of tutorials about using the Arduino Mega ADK microcontroller with Android devices

There already exists a Basic4android library for the IOIO...
 
Last edited:
Top