Creating an AVD for Your Project

The next step is to create an AVD that describes what type of device you want to emulate when running the application. For this example, we can use the AVD we created for the Snake application. An AVD describes a device, not an application. Therefore, you can use the same AVD for multiple applications.You can also create similar AVDs with the same configuration, but different data (such as different applications installed and different SD card contents).

Note

Again, for more information on creating different types of AVDs and working with the Android emulator, check out Appendix A, "The Android Emulator Quick-Start Guide."

Table 3.1 Important Android Project Files and Directories

Android File

General Description

AndroidManifest.xml

Global application description file. It defines

your application's capabilities and permis

sions and how it runs.

default.properties

Automatically created project file. It defines

your application's build target and other build

system options, as required.

src Folder

Required folder where all source code for the

application resides.

src/com.androidbook.myfirst-

Core source file that defines the entry point

androidapp/MyFirstAndroidApp-

of your Android application.

Activity.java

gen Folder

Required folder where auto-generated re

source files for the application reside.

gen/com.androidbook.myfirst-

Application resource management source file

androidapp/R.java

generated for you; it should not be edited.

res Folder

Required folder where all application re

sources are managed. Application resources

include animations, drawable image assets,

layout files, XML files, data resources such

as strings, and raw files.

res/drawable-*/icon.png

Resource folders that store different resolu

tions of the application icon.

res/layout/main.xml

Single screen layout file.

res/values/strings.xml

Application string resources.

assets Folder

Folder where all application assets are

stored. Application assets are pieces of ap

plication data (files, directories) that you do

not want managed as application resources.

Easy Software Profits

Easy Software Profits

Here's How Anyone Can Start, Build and Run their Own Successful Software Empire Without Knowing the First Thing About Programming, Scripting Or Any 'Coder' Stuff. There is no doubt about it software sells. Software has a high percieved value and it solves problems for people.  A claim that can't always be made for PDF books, Video products and the like.

Get My Free Ebook


Post a comment