Original Author Paul Laughton, 2011
Page 227
De Re BASIC!
b.
Enter 25 for Validity (Years).
c.
Click next.
6.
In the Destination and Key/Certificate Checks dialog,
a.
Browse to the folder where you want to put the APK.
b.
Name the APK "Cats.apk".
c.
Click next.
7.
Now, install and run Cats.apk.
The APK will have the BASIC! icon. The name below the icon on your device will be "Cats!". Double click
the icon to run your application.
If you have reached this point successfully then you are ready to customize the APK for your application.
Start over with a new copy of Basic.zip but use names and information particular to your application and
then continue below.
Installing a BASIC! Program into the Application
You must build your BASIC! program into your application my putting it into the assets folder, just as
you saw in the practice program. One very simple way is to copy your text into assets/<your-
app>/my_program.bas. <your-app> is the path you named in the setup.xml item "app_path".
1.
In the Eclipse Package Explorer, expand the assets folder.
2.
Double-click assets/<your-app>/source/my_program.bas.
3.
The file will open in the edit window to the right:
Now you can edit the file directly in Eclipse. If you prefer, you can open your program outside of Eclipse,
copy its contents to the clipboard, and paste it into the Eclipse editor. When you are finished, select File-
>Save from the menu bar, or just close the file by clicking the X
on the file tab and Yes in the
Save Resource dialog box.