Thursday 8 January 2015

FOLDER, FILE & DESCRIPTION OF ANDROID APPS


src: This contains the .java source files for your project.

gen: contains the .R file, a compiler-generated file that references all the resources found in your project. You should not modify this file.


bin: contains the Android package files .apk built by the ADT during the build process and everything else needed to run an Android application.


res/drawable-hdpi

This is a directory for drawable objects that are designed for high-density screens.


res/layout

This is a directory for files that define your app's user interface.


res/values

This is a directory for other various XML files that contain a collection of resources, such as strings and colors definitions.


AndroidManifest.xml

This is the manifest file which describes the fundamental characteristics of the app and defines each of its components.

example:-


<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.okey1" android:versionCode="1" android:versionName="1.0">

<uses-sdk android:minSdkVersion="8" android:targetSdkVersion="18" />
<application android:allowBackup="true" android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:theme="@style/AppTheme">
<activity android:name="com.example.okey1.MainActivity" android:label="@string/app_name">

<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>


The AndroidManifest.xml file contains the following information about the application :-
  • It contains the package name of the application.
  • The version code of the application is 1.This value is used to identify the version number of your application.
  • The version name of the application is 1.0
  • The android:minSdkVersion attribute of the element defines the minimum version of the OS on which the application will run.
  • ic_launcher.png is the default image that located in the drawable folders.
  • app_name defines the name of applicationand available in the strings.xml file.
  • It also contains the information about the activity. Its name is same as the application name.



No comments:

Post a Comment