Android structure (because you can not upload pictures, so please search yourself!!) )
Then the difference between the DVM and the JVM Dalvik is based on the register and the JVM is in memory 2, the bytecode file generated by the JVM is. Class and Dalvik is Dex Format 3 "Dalvik is able to run multiple and the JVM only runs one!
Create a project and then analyze the structure of the project:
SRC----The source code written
Gen----Auto-generated files include R.java
Res-----resource files include
------drawable------Picture Resources
------Layout------Layouts Resources
------values-----Some constant resources
Androidmanifest.xml------Application feature configuration Checklist!!
Analyze the composition of the APK installation file
Res-------resource files in a project
Androidmainifest.xml---features manifest file
Classes.dex---All class files for public DVM Execution (Dalvik)
Analyze the directory structure of Android system files:
650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>
./represents the root directory of the system
/data/app
Third-party apk files
/system/app
APK file for System
/data/data/packagename
Folder for items
/storage/sdcard
SD Card Folder
SDK File Structure Directory
Doc-------document file with API, etc.
Platforms-----platform contains each version of the file
Platform-tools-------include some development tools, such as ADB. Exe,sqlite3.exe
Samples------Some sample projects provided by Google
SOURCE------contains part of the system's source code
Tools-----include some development tools such as Draw9patch. BAT, Hierarchyviewer.bat
ADB and common commands
ADB Debug Bridge Debugging tool
No Adb.exe and Ecplice connection to manage device and emulator status
1adb-shell Enter the system's root directory LS view CD entry
2ADB Install-r Apkpath
3 adb start-server
4 adb Kill-server
Ddms
650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>
Next, do a download exercise!
6. Related APIs:
Activity:
OnCreate (): Automatically called callback method in which the layout display is loaded
Setcontentview (int layoutid): Load layout
View Findviewbyid (ID): Find the corresponding View object based on the ID
R:
R.drawable: Internal class containing all the image resource identifiers
R.layout: Internal class containing all layout resource identities
R.id: Internal class containing all view ID identifiers
R.string: Inner class containing all string identifiers
View/button
Setonclicklistener (Listener): Set the view to click to listen
View.onclicklistener: Internal interface
OnClick () callback method
Toast: A class used to display short-time prompt text
Static Toast Maketext (context context, String text, int duration): Create a Toast Object
Show (): Show tips
Introduction to Android (First day)