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
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.
[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.