Android Directory Structure Introduction

Source: Internet
Author: User

Category: Embedded

An Android project has the following directories:

SRC: Here's the source code we wrote.

Gen: Here's an eclipse Auto-generated file, no need to control it

Asssts: Placing Files

Res: It is also the placement of files, the difference is that the res placed the file in gen 's, this file generates the corresponding ID value. and Gen does not generate.

DRAWABLE-HDPI High resolution (image)

DRAWABLE-LDPI Low resolution (image)

DRAWABLE-MDPI Resolution (image)

layout Layouts

Main.xml controls the position size of controls and other properties

Values key value pairs

String.xml stores all key-value pairs. Key-value pairs generate IDs in R.java

Introducing The role of the Androidmanifest.xml file

configuration files for Android

<?xml version= "1.0" encoding= "Utf-8"?>
<manifest xmlns:android= "Http://schemas.android.com/apk/res/android"
Package= "Com.chesee"//Package Name
Android:versioncode= "1"
Android:versionname= "1.0" > <uses-sdk android:minsdkversion= "ten"/> <application
android:icon= "@drawable/ic_launcher"//reference picture
Android:label= "@string/app_name" >//referring to application's name
<activity
Android:name= ". Helloworldactivity "//package name. This is the access to the class. This thing class name
Android:label= "@string/app_name" >//Citation tag
<intent-filter>
<action android:name= "Android.intent.action.MAIN"/> <category android:name= "Android.intent.catego Ry. LAUNCHER "/>//start this activity first
</intent-filter>
</activity>
</application></manifest> Fourth Step: Run Reading (5291) | Comments (0) | Forwards (0) |

Android Directory Structure Introduction

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.