Tutorials & Examples

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

B4A Book Now Covers version 5.20

B4A-324x400.jpg

A new version of the best-selling book by Wyken Seagrave is available covering version 5.20 of B4A.

In 601 pages, this book includes...
 

Running simultaneous tasks at different speeds

Introduction:

I came across this challenge about one year ago, when I was trying to integrate sprites that were designed to be displayed at 24 FPS on a 60 FPS game loop.
For the sake...
 
Last edited:

My LibGDX / Game Creation advice

Creating your own games can be a lot of fun, but it's important to get things right from the beginning.

Here's what I've learned the hard way:
  • Use an Asset Manager, it's a bliss...
 
Last edited:

Use Font instead of Icon

Hi.
Many programmer use picture in them project
Too i used in last.
But now with Font awesome,we can use font instead of icon
of course font is limit and the publisher can add icon to font
OK...
 

Square Progress Bar

It wraps part of this Github project. Library files are in the /files folder of the B4A project. Copy them to your additional library folder. Posting the zipped B4A project as well as the...
 

Attachments

  • SquareProgressBar.zip
    314 KB · Views: 965
  • src.zip
    10 KB · Views: 744
Last edited:

Collision Detection for Tile-based Platform Games

For those interested in creating their own collision detector, here the tutorial I'm currently studying...
 

How they do... #2

How do they... ? #2

How do they... ? #2

(French version/Version française)

I decided to dedicate my second and third tutorials to PlayerPro of BlastOn LLC. I'll show you...
 
Last edited:

Converting VB6 to B4A

Below is a table listing features of Visual Basic 6 and their equivalents in B4A.

If you find errors or wish to add other features, post a reply here to have your input integrated into the table...
 
Last edited:

Basic4Android for Linux (Ubuntu) - Installation Script

Hy everyone,

Here is a little script to install Basic4Android on Linux (realized and tested on Ubuntu 12.04 LTS 64bit )

To run this script:
1 - Edit B4A_Installer_en.sh with your favorite text...
 

Attachments

  • B4A_Installer_en.zip
    6.4 KB · Views: 1,109
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:

Max length of SMS message

My app will be sending SMS messages (using sms.send(phone, text) some of which may be longer than 160 chars. Currently, I have broken these down into multiple messages each of which is < 160...
 

Add shortcuts to your Android application

Attachments

  • Shortcut.zip
    9.5 KB · Views: 2,055
Last edited:

How to create a shortcut DIRECTLY from within your application

I know there are some threads on this topic, and I had the feeling that there might be some misunderstandings. So to save you the time to read through all those threads and get the solution at...
 

Introduction to customizing B4A / B4J with Autohotkey

From time to time there are feature requests and wishes that are too individual to be implemented in the IDE and can easily be done in Autohotkey. For those who do not already know this sometimes...
 

Attachments

  • B4A.zip
    2.6 KB · Views: 470
Last edited:

Android Drawables Demo

I wasn't sure were to put this, its simply a dev tool I built to view all the available drawables, as defined at http://androiddrawables.com/.

I built this small tool for myself, but...
 

Attachments

  • generate drawables code (Excel 97-2003).zip
    144.3 KB · Views: 418
  • AndroidDrawablesViewer_V2.zip
    36.8 KB · Views: 455
Last edited:

Android Views (controls) and dialogs

Many users who start to develop Android applications may be frustrated by the fact that they don't find the control they are looking for. Its even worse, for some mysterious reason there are no...
 

Hangman Tutorial (part 1)

Hi, I'm Eric. I am still fairly new to Basic4Android, but have dabbled off and on in programming for the last 20 years. I started programming with GWBasic back when I was about 11. It took me...
 
Last edited:

Logcat viewing

The Basic4Android IDE contains a mysterious tab entitled "Logcat" in the right hand pane.

This archive contains a help file that will tell you what a Logcat is and also contains a more...
 

Attachments

  • B4ALogViewer1.2.zip
    16.3 KB · Views: 964

TIP: Replace your Floats by Doubles

It may happen sometimes that, if your dealing with complex non-integer calculations, your code may not perform exactly the way you want to. I came across this problem when I was trying so create a...
 
Last edited:

AutoStarts - Complete App

What is it?
AutoStarts is an Android based software package for auto starting apps on your phone or tablet at bootup. It was mainly written to support the eHome product. It is fully...
 

Attachments

  • Screenshot.png
    Screenshot.png
    40.7 KB · Views: 1,153
  • AutoStarts.zip
    100.6 KB · Views: 1,267
Last edited:
Top