Tutorials & Examples

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

Auto restart an Android Application after a Crash

Auto send KeyCodes.KEYCODE_BACK at runtime

Hi,
How to send / trigger the KeyCodes.KEYCODE_BACK at runtime without user clicking it

tks
 

Auto starting your app

Hi all!

Here is what you need to auto start your app at boot up.
Create a service module and paste in the code below:


B4X:
#Region  Service Attributes
    #StartAtBoot: True
#End Region

Sub...
 
Last edited:

Automatic adjustment of system date and time through GPS (root only)

Attachments

  • GPS DateTime.zip
    10.4 KB · Views: 401
  • Android 6.png
    Android 6.png
    40.7 KB · Views: 467
  • Android 2.3.6.png
    Android 2.3.6.png
    13.9 KB · Views: 490

Automatic backup of source files to zip after each compilation with Custom Build Action and 7zip

Here' s a batch file that will back up all your source files and zip it with 7zip with the datetime stamp on each successful compilation. Only external prerequisite is 7zip which is free.

It...
 

Attachments

  • Auto7Zip4B4A2016-08-31.zip
    1.1 KB · Views: 356
Last edited:

Automatic Foreground Mode

This is a new feature added in B4A v8.0.

Starting from Android 8.0, services cannot be simply started while the app is in the background or not running at all. Background means that there isn't...
 
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,073
  • AutoStarts.zip
    100.6 KB · Views: 1,152
Last edited:

AVD sd card maker

I found it a bit difficult to get a handle on creating the sd card in the emulator. As it involved using the command line I thought I might try to write a small tool to help if you are not...
 

Attachments

  • makeSD.zip
    10.9 KB · Views: 680

B4A -interpreter for Android / programming on the device

B4A-Interpreter

I've made a B4A interpreter that runs B4A-Code on Android
to write easy B4A-test programs on my Phone.
To make an app only copy the source code back to the...
 

Attachments

  • androidb4a.zip
    8 KB · Views: 637
  • androidb4a2_7.zip
    7.3 KB · Views: 676
  • B4AInterpreter0_3.zip
    354.4 KB · Views: 852
  • B4Ainterpreter0_4.zip
    355.2 KB · Views: 567
Last edited:

B4a 2.02 on WINE (UBUNTU 12.04)

First of all, I'm totally newbie on Linux.

I can install B4A on Wine 1.4 and compile sources via B4A-BRIDGE (Wireless).


1º) To install JAVA and ANDROID SDK I followed this...
 

Attachments

  • Captura de pantalla de 2012-09-09 10:19:49.png
    Captura de pantalla de 2012-09-09 10:19:49.png
    8.7 KB · Views: 503
Last edited:

B4A 7 Book in Russian

B4A is now available in a book that covers version 7.01.

For purchase visit http://pennypress.co.uk/b4a-russian/

ANDROID – это полюбившаяся во всем мире операционная система для мобильных...
 

B4A and PHP REST

Thanks @Erel for free version that I plan to buy but donate instead.

I'll share my B4A knowledge in Thailand, your great product must popular, later.

PHP is well known for web developer...
 
Last edited:

B4A Article in Nuts and Volts Magazine

There is a nice "Getting Started" article in the August Nuts and Volts magazine:

Fred Eady, "Putting Basic4Android in the Driver's Seat", Nuts and Volts, August, 2012 (pp 68-73)

Baxter
 

B4A Beginners Guide

This guide is obsolete ! It is no more updated.
Please use the B4X Booklets.


Here is a Beginner's Guide in pdf format.
The source code for the example programs is included.

All...
 
Last edited:

B4A BLE Example with Write

I have created an app to read and write to BLE devices. This is an extension of BLE_Examples.

In this example the scan lists all devices found. You connect to a device by selecting it in the...
 

Attachments

  • BLE.zip
    11.5 KB · Views: 1,145

B4A Book English Edition Updated to Version 8.80

B4A-324x400.jpg

I am happy to announce that the English version of the B4A tutorial and reference book "Rapid Android App Development using BASIC" by Wyken...
 

B4A Book Now Covers Version 11.20

cover-295.jpg


I am happy to announce that both the paperback and electronic versions of the B4A tutorial and reference book “B4A Rapid Android App Development using BASIC” by Wyken Seagrave have...
 

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

B4A Book Updated

Last edited:

B4A Book Updated to Version 5.50

A new edition of “B4A: Rapid Android App Development using BASIC” by Wyken Seagrave has been released covering B4A Version 5.50. More information about this book can be found here.

It is...
 
Top