Original Author Paul Laughton, 2011
Page 230
De Re BASIC!
Eclipse has special editors to display different views of the Manifest. If you don't see the actual XML text
as shown here, click on the rightmost tab at the bottom of the window, labeled AndroidManifest.xml.
Setting the Version Number and Version Name
If you are going to put the application on the Google Play Store, you will need to change the version
number and name for each new release.
Make the appropriate changes to the android:versionCode and android:versionName items of the
<manifest> tag at the top of AndroidManifest.xml.
If you want to use the BASIC! VERSION$() function to have your program read your version number, you
will also have to change the version number in res->values->strings.
Permissions
BASIC! uses many features about which the APK user is warned and must approve. Your particular APK
may not need all or any of these permissions. The permission notifications are contained in the <uses-
permission>
tags of the AndroidManiest.xml. They look like this:
<
uses-permission
android:name
=
" android.permission.
...
"
/>
Look them over. If you feel that your APK does not need them then delete or comment them out.
If your application uses the SD card, do not comment out:
<
uses-permission
android:name
=
"android.permission.WRITE_EXTERNAL_STORAGE"
/>
Note: your application does not need WRITE_EXTERNAL_STORAGE permission if you use only the private
storage named in the SysPath key of the Program.info command.
If you want your application to run when the device boots (see "Launch at device boot", below), do not
comment out:
<
uses-permission
android:name
=
"android.permission.RECEIVE_BOOT_COMPLETED"
/>
Be sure to test your APK after changing permissions.
Disable the Shortcut Launcher
Each Activity screen that BASIC! can present to a user is declared in an <activity> tag in the
AndroidManifest.xml file. Your application may not use every Activity BASIC! offers. You may remove
the unsed <activity> tags if you wish, but they don't hurt anything if you leave them in.
However, the <activity> tags also tell the Android system what events should start your application. You
probably do not want your application to respond to these two events:
1)
A user can launch BASIC! by tapping a file with a ".bas" extension
2)
A user can use the Shortcut Launcher to create a shortcut for a BASIC! program