Android application template
Automation scripts for creating Android applications
|
view on
github
|
This repository contains several batch scripts (for Windows) which help automate the creation of Android applications.
The form is approximately based on this tutorial, except it uses a more up-to-date version of the Android tools and provides the steps in script format. These scripts can be modified or merged into something else (such as a python script,) but separate batch scripts is a simple enough starting point.
This will describe the basic order the scripts should be used in, and when source files should be created/added.
settings.bat
DIR_JDK
(path to the JDK you installed)DIR_ANDROID
(path to the Android SDK you installed)PROJECT_NAME
(a unique name for your project; this is also used to create the device)DOCUMENTATION_TITLE (a title for the documentation)
DEVICE_*
(use "%DIR_ANDROID%\tools\android" list target
to show available device targets)KEYSTORE_*
(you may also want to remove/clear any password settings)init.bat
create-device.bat
.android
directory.
create-keystore.bat
AndroidManifest.xml
create-R.bat
R.java
file, used for locating any resources you create.
compile.bat
create-dex.bat
create-apk-unsigned.bat
create-apk-signed.bat
create-apk-final.bat
zipalign
'd version of the Android package, providing some optimization.
To run and install in an Android emulator, use the following commands:
start-emulator.bat
install-in-emulator.bat
while the emulator is runningThe following miscellaneous scripts are also available:
uninstall-in-emulator.bat
while the emulator is runninginstall-on-device.bat
delete-device.bat
Note: emulation can be sped up if you have an Intel processor and install their Hardware Accelerated Execution Manager.
The installer may also be found in the following directory depending on which components you chose to install:
%DIR_ANDROID%\extras\intel\Hardware_Accelerated_Execution_Manager