Exploring the Android Project Files

There in this post we are going to explore the Android project files.

Once you created a Android Project should will see the project will contain following core files and directories. so lets get the meaning and purpose of these files.

AndroidManifest.xml—The central configuration file for the application.
. default.properties—A generated build file used by Eclipse and the Android
ADT plug-in.
Do not edit this file.
. proguard.cfg—A generated build file used by Eclipse, ProGuard, and the Android ADT plug-in. Edit this file to configure your code optimization and obfuscation settings for release builds.
. /src folder—Required folder for all source code.
. /src/com.android.android1/HelloandroidActivity.java—Main entry point to this application, named helloActivity. This activity has been defined as the default launch activity in the Android manifest file.
. /gen/com.android.android1/R.java—A generated resource management source file. Do not edit this file.
. /assets folder—Required folder where uncompiled file resources can be included in the project.
./bin/helloandroid.apk—File that is to be installed on Android phone to run your created application on your Android phone actually.
./bin/resources.ap_— Necessary for the installation . If not present the then failed to install “.apk” on your AVD.

error:
[2012-01-10 10:27:15 – helloandroid] Installing helloandroid.apk…
[2012-01-10 10:30:05 – helloandroid] Failed to install helloandroid.apk on device ’emulator-5554!
[2012-01-10 10:30:05 – helloandroid] (null)
[2012-01-10 10:30:05 – helloandroid] Launch canceled!

. /res folder—Required folder where all application resources are managed.
Application resources include animations, drawable graphics, layout files, data-like strings and numbers, and raw files.
. /res/drawable-*—Application icon graphic resources are included in several sizes for different device screen resolutions.
. /res/layout/main.xml—Layout resource file used by helloandroid to organize controls on the main application screen.

. /res/values/strings.xml—The resource file where string resources are defined.

Android Installation

Before entering in the procedure of the installation of the softwares, IDEs, and plugin.

you must know the machine requirements for the android application to get run on your machine.

Hardware Requirements:
1. Processor- dual core or more
2. RAM- 3GB

software requirement and installation:

STEP-1
To work with android you have to install the jdk(java development kit) that is available from the oracle website. if yo are using windows then from “http://www.oracle.com/technetwork/java/javase/downloads/jdk-7u2-download-1377129.html” you have to choose

Windows x86 84.04 MB    jdk-7u2-windows-i586.exe

once it get downloaded , get it install on your system.

STEP-2
Install eclipse(IDE), for the development of android application you can get the eclipse(IDE) from http://www.eclipse.org/downloads/then after opening the link you can download eclipse.i have Eclipse IDE for java EE developers for my 32-bit windows. what you want you can select that one form the list. and install it.

STEP-3
After all this you can visit http://developer.android.com/sdk/index.htmland choose installer_r16-windows.exe (Recommended)after downloading the SDK(standard development kit) you have to download ADT plugin to work with eclipse(IDE) which we previously installed.

STEP-4
Follow http://developer.android.com/sdk/eclipse-adt.htmlall the procedure for the installation of the ADT plugin is explained there.
after all the setup is done you can run your first android program.