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