Simulator section Code 1. Start the simulator with a command (switch tools) emulator@ Simulator NameEmulator@4.4avd 2. Install apk program with command (switch to platform-tools) adb install program name .apk Project structure Section res (Resource Resources section, picture, sound, video, webpage, XML file, etc.) 1. Drawable-xxx (used to put pictures, the recommended PNG format picture can only use the number of small letters, not to start with a number) 2xxx, the meaning of the resolution, the size, in turn, is l<mandroid:name= "Write the appropriate permissions"--<uses-permission android:name= "Android.permission.INTERNET"/> <!--the entire application configuration Android:icon application Some icons Android:label the title of the application Anroid:theme the subject of this program (there is a system theme (typically add an android:) and a custom theme) android:allowbackup= "True" allows backup--&G T <application android:allowbackup= "true" android:icon= "@drawable/ic_launcher" android:label= "@strin G/app_name "Android:theme=" @style/apptheme "> <!--activities, configuration, which is equivalent to interface configuration
Android:name, where this class is located, the specific location, if the above manifest write the package, here can omit the package prefix, directly write. Class name can be Anroid:label, the application name, is the same as above, but only for this interfaceIntent-filter: Intent filter, specify if run mainactivity, under what circumstances let Mainactivity run up --> <activity and nbsp Android:name= "com.ruicaiedu.day1125_base. Mainactivity " android:label=" @string/app_name "> & nbsp <intent-filter> <action android:name= " Android.intent.action.MAIN "/> <category Android:name = "Android.intent.category.LAUNCHER"/> </intent-filter> </activity> <!--content provider Provider: Access to other applications, data sharing between applications- -><!-- <provider android:name= "" android:authorities= "/>--> <!-- Broadcast: When an event is defined, once it has been triggered, it is executed--><!--
<receiver android:name= "" > -<!--
<intent-filter> <!--
<action android:name= "ABCDEFG" ></action> -<!--
</intent-filter> <!--
</receiver><!--services: Generally in the background, no interface--><!--
<service android:name= "" ></service> -</application> </manifest>
First day of Android