Game Development Reference
In-Depth Information
Figure 1-5. Package Explorer
You can also expand a package so that you can access all the files related to that package by
clicking the “plus” symbol next to the package name. The Java source code files are located in the
“src” directory, and the project-related resources, such as textures, 3D models, etc., are located in
the “res” (short for resources ) directory. Double-click a source code file or resource file to bring it
up for viewing inside Eclipse. Source files can also be expanded so that you can get an overview
of the class's variables and functions. You can double-click a variable or function to go to that
variable or function within Eclipse's source view window. In Figure 1-6 , there is only one function
in the “AndroidHelloWorldActivity” class, which is “onCreate.” Finally, every Android package has
an AndroidManifest.xml file that defines such things as what permissions are needed to run the
program, program-specific information such as version number, program icon, and program name,
as well as what minimum Android operating system is needed to run the program.
Search WWH ::




Custom Search