Original Author Paul Laughton, 2011
Page 219
De Re BASIC!
3.
Older versions of this file contain only the BASIC! source code. More recent versions also contain
a copy of the Android-loadable Basic.apk file and a copy of this manual.
4.
Put the unzipped source files into a folder. For this exercise, name the folder "Cats". You should
use a different folder for each new APK that you create.
Note: In the remainder of this tutorial, we assume our application is about cats, thus we are using
the name "Cats". For your own APK, you should choose a name that matches your application.
Create a New Project in Eclipse
Note: to simplify later steps, turn off the automatic build feature of Eclipse before creating the new
project:
1.
On the menu, click Project.
2.
Uncheck Build Automatically.
Now you can create the project.
3.
Select: File -> New -> Project...->Android->Android Project from Existing Code.
4.
In the Import Projects dialog box, browse to the folder where you put the BASIC! source files.
5.
Under Projects to Import, click the project you are importing. Make sure it is checked.
6.
Under New Project Name, change the project name from "Basic" to "Cats". Click Finish.
7.
In the Package Explorer window on the left, right-click on Cats and select Properties (near the
bottom of the list).
8.
In the Properties dialog box, select Android:
9.
Check the highest level of the Android OS available in this list. Do this without regard to the level
of OS in your device(s). (Note for KitKat users: BASIC! is currently compiled with API 18. The
build works with higher levels, but you may choose to limit the OS level to 4.3, API 18.)
10.
Click Apply then OK.
The Basic source is now ready for making an APK.