background image
Original Author Paul Laughton, 2011
Page 217
De Re BASIC!
Appendix D ­ Building a Standalone Application
Note: BASIC! collaborator Nicolas Mougin, has created a suite of automated tools for generating
standalone applications. These tools can be downloaded from this website:
http://rfo-basic.com
Using Mr. Mougin's tools, you avoid having to do all of the following.
If you have any questions or problems with this tool you can contact Mr. Mougin and other users of the
tool at the BASIC! forum in this thread:
http://rfobasic.freeforums.org/rfo-basic-app-builder-f20.html

Introduction
This document will demonstrate how to create a standalone application from a BASIC! program. The
resulting application does not need to have BASIC! installed to run. It will have its own application name
and application icon. It may be distributed in the Google Play Store or elsewhere. The process involves
setting up the Android development environment and making some simple, directed changes to the
BASIC! Java source code. Since Google changes the Development Environment every so often, this
procedure does not necessarily reflect the latest version of the ADT.
License Information
BASIC! is distributed under the terms of the
GNU GENERAL PUBLIC LICENSE
. The license requires that
the source code for "derivative works" be made available to anyone who asks. The author of BASIC!
interprets this to mean that the license applies only to derivatives of the BASIC! source interpreter code.
It does not apply to source code for BASIC! applications, i.e., code that you have written using the BASIC!
language.
Before You Start
Run the sample program, source/my_program.bas.
We are going to turn this program into a practice APK.
Setting Up the Development Environment
These instructions are based on using the Android Developer Tools (ADT) plug-in for the Eclipse
Integrated Development Environment (IDE) to build an Android application.
This is no longer the recommended toolset. Android Studio is now the official IDE for Android. For
information about Android Studio, visit Android's Developer Tools page at
http://developer.android.com/sdk/index.html
.
These instructions will be updated for the new tools in a future version of this manual.