Java Reference
In-Depth Information
• The --activity (or -a ) option specifies the name for the default activity
class. The resulting classfile is created inside / path / to / your / pro-
ject / project_name / src / your_package_namespace / , and is
used as the .apk filename if --name (or -n ) isn't specified.
• The --package (or -k ) option specifies the project's package namespace,
whichmustfollowtherulesforpackagesthatarespecifiedintheJavalanguage.
AssumingaWindowsXPplatform,andassuminga C:\prj\dev hierarchywhere
the Java7MeetsAndroid project is to be stored in
C:\prj\dev\Java7MeetsAndroid , invoke the following command from any-
where in the filesystem to create Java7MeetsAndroid :
android create project -t 1 -p C:\prj\dev\Java7MeetsAndroid
-a Java7MeetsAndroid -k
ca.tutortutor.j7ma
Thiscommandcreatesvariousdirectoriesandaddsfilestosomeofthesedirectories.
It specifically creates the following file and directory structure within
C:\prj\dev\Java7MeetsAndroid :
AndroidManifest.xml is the manifest file for the app being built. This
fileissynchronizedtothe Activity subclasspreviouslyspecifiedviathe --
activity or -a option.
bin is the output directory for the Apache Ant build script.
build.properties is a customizable properties file for the build system.
YoucaneditthisfiletooverridedefaultbuildsettingsusedbyApacheAnt,and
provideapointertoyourkeystoreandkeyaliassothatthebuildtoolscansign
your app when built in release mode (discussed in Android Recipes ).
build.xml is the Apache Ant build script for this project.
default.properties is the default properties file for the build system.
Don't modify this file.
libs contains private libraries (when required).
local.properties containsthelocationoftheAndroidSDKhomedirect-
ory.
proguard.cfg containsconfigurationdatafor ProGuard ,anSDKtoolthat
letsdevelopersobfuscatetheircode(makingitverydifficulttoreverseengineer
the code) as an integrated part of a release build.
res contains the project's application resources.
Search WWH ::




Custom Search