Before we run any app, we should be aware of few directories and files in
the Android Project:
1. AndroidManifest.xml
The manifest file describes the fundamental characteristics of the app and
defines each of its components.
One of the most important elements your manifest should include is the
. This declares the application compatibility with different
Android version using the android:minSdkVersion and android:targetSdkVersion
attributes.
The AndroidManifest.xml for basic application will look as shown below:-
...
2. scr/
This Directory cointain the main source file(Java files). By default, it includes an
Activity class that runs when the app is launched.
res/
It cointain several sub-directories for the app resources.
drawable-hdpi/
This
is the directories for drawable object(such as bitmaps, .png etc) that are designed for high-density(hdpi) screens.
layout/
Directory
that define the app's user interface. The layout cointain the .xml
files
that is used to create the app's GUI.
values/
Directory
for other various XML files that cointain a collection of resources,
such
as string and color definitions.
In next post we will built a simple application.
No comments:
Post a Comment