..


Sponsored Links

The structure of the HelloWorld project

Including the structure of a hypothetical Android application, we can reopen the HelloWorld project previously created starting to get familiar with the simulator and then going to analyze, step by step, the project's source code.

If the project has been generated correctly, as we have said in previous chapters, its name appears on the left menu of Eclipse.
The newly created project will have the following structure:

Structure of the HelloWorld project, Eclipse

As we can see the structure of our HelloWorld generated by Eclipse is very wide and consists of several folders. For convenience, in the screenshot above, we have expanded only the folders that have a real use didaddica.

Consider, for example, that the src folder contains the java package with the name given when creating the project and within the file are HelloWorld.java. This file contains all the code needed to run the project and printing out a string. If, for example, our Android project will include more classes, which is quite likely if you plan to build an application that has a minimum of functionality, these classes will be placed right inside the src folder of the package.

Gen is the folder to a folder, as we can see from the header, is self-generated by Eclipse when it is created. This folder contains the file R.java, which is a file important for the proper performance of our application. The task of this file is to associate resources to the project, as it could be for example an image, a hexadecimal code. We will see its utility in the continuation of our guide.

Another very important folder is the folder in which to place the res all our resources to the application, as we see it contains two folders (we will work principalmete nela first): the folder layout where, through a file. Loyout xml will be specified in our application , and the folder in which to place values ​​such as values ​​associated with the strings.

Help develop applications for Android
E-Learning
Java (Course) Java (Course)
OOP Programming in Java SUN. From 49 €.
Photoshop (Course) Photoshop (Course)
Web graphics and photo editing with the popular Adobe Photoshop. From 49 €.
SQL and Database (Course) SQL and Database (Course)
Create and manage relational databases. From 39 €.
Sponsored Links