2011年5月12日木曜日

Using the Android Asset Packaging Tool

Android applications rely on many different types of resources-such as text strings,
graphics, and color schemes-for user interface design.
These resources are stored in the /res directory of your Android project in a strict (but
reasonably flexible) set of directories and files. All resources filenames must be lowercase
and simple (letters, numbers, and underscores only).

If you use the Eclipse with the Android Development Tools Plug-In, you will find that
adding resources to your project is simple.The plug-in detects new resources when you
add them to the appropriate project resource directory under /res automatically.These
resources are compiled, resulting in the generation of the R.java file, which enables you to
access your resources programmatically.

If you use a different development environment, you need to use the aapt tool command-
line interface to compile your resources and package your application binaries to
deploy to the phone or emulator.You can find the aapt tool in the /tools subdirectory of
each specific Android SDK version.

0 件のコメント:

コメントを投稿